Table of Contents

Interface IEdgeRetriever

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

The whole retrieval seam.

public interface IEdgeRetriever

Remarks

The shape deliberately mirrors Agent Framework's TextSearchProvider(Func<string, CancellationToken, Task<IEnumerable<TextSearchResult>>>) so an app that later adopts an AIContextProvider hands over the same lambda - while sub-project 4 takes no dependency on Microsoft.Agents.AI, because UseAIContextProviders throws InvalidOperationException at invocation time unless there is a live AIAgent.CurrentRunContext, which a plain IChatClient on a bare ServiceCollection never has.

Properties

Name

A stable name for logs, diagnostics and EdgeRagException.RetrieverName.

Methods

RetrieveAsync(string, RetrievalRequest, CancellationToken)

Returns the matching sources, best-first, with Score and ScoreKind stamped.