Table of Contents

Class EdgeRagBuilderExtensions

Namespace
Qavren.Edge.Rag
Assembly
Qavren.Edge.Rag.dll

Registration for the RAG recipe.

public static class EdgeRagBuilderExtensions
Inheritance
EdgeRagBuilderExtensions
Inherited Members

Methods

AddEdgeRag(EdgeBuilder, Action<RagOptions>?)

Registers RagOptions and the diagnostics contributor. Registers no retriever and no chat client - both are the consumer's choice, which is what makes this package work with either. Idempotent.

AddExtractiveChat(EdgeBuilder, Action<ExtractiveChatOptions>?, Action<ChatClientBuilder>?)

Registers ExtractiveChatClient as the IChatClient, for an app that ships no weights.

AddRetriever(EdgeBuilder, Func<IServiceProvider, IEdgeRetriever>)

Registers a singleton IEdgeRetriever from a factory.

AddRetriever<TRetriever>(EdgeBuilder)

Registers TRetriever as the singleton IEdgeRetriever.

AddVectorStoreRetriever<TKey, TRecord>(EdgeBuilder, string, Func<TRecord, RagSource>, Action<VectorStoreRetrieverOptions<TRecord>>?, Action<RagOptions>?, string?)

Calls AddEdgeRag(EdgeBuilder, Action<RagOptions>?), resolves MEVD's abstract VectorStore from DI and takes GetCollection<TKey, TRecord>(collectionName).