Class EdgeRagBuilderExtensions
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
TRetrieveras 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
VectorStorefrom DI and takesGetCollection<TKey, TRecord>(collectionName).