Table of Contents

Method UseRag

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

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

builder ChatClientBuilder

The MEAI pipeline builder.

retriever IEdgeRetriever

Null 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.

configure Action<RagOptions>

Applied on top of whatever AddEdgeRag configured, 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.