Method UseRag
UseRag(ChatClientBuilder, IEdgeRetriever?, Action<RagOptions>?)
Adds RagChatClient to the pipeline.
public static ChatClientBuilder UseRag(this ChatClientBuilder builder, IEdgeRetriever? retriever = null, Action<RagOptions>? configure = null)
Parameters
builderChatClientBuilderThe MEAI pipeline builder.
retrieverIEdgeRetrieverNull resolves IEdgeRetriever as required from DI, matching
UseDistributedCache's convention. A missing one is RagRetrieverMissing (7201), naming the two registrations that would have supplied it.configureAction<RagOptions>Applied on top of whatever
AddEdgeRagconfigured, to a fresh RagOptions built by the container's own options factory - so one pipeline's overrides never leak into another's.
Returns
- ChatClientBuilder
The builder, for chaining.