Table of Contents

Method RetrieveAsync

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

RetrieveAsync(string, RetrievalRequest, CancellationToken)

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

public ValueTask<IReadOnlyList<RagSource>> RetrieveAsync(string query, RetrievalRequest request, CancellationToken cancellationToken)

Parameters

query string
request RetrievalRequest
cancellationToken CancellationToken

Returns

ValueTask<IReadOnlyList<RagSource>>

Exceptions

EdgeRagException

RagRetrievalFailed (7202) when Top + Skip exceeds MaxCandidates; RagCollectionNotSearchable (7203) when RequireHybridSearch is set and the collection has no keyword lane.