Table of Contents

Class DelegateRetriever

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

An IEdgeRetriever over a lambda, for a consumer whose corpus is not an MEVD collection - an in-memory list, an HTTP search endpoint, a hand-rolled index.

public sealed class DelegateRetriever : IEdgeRetriever
Inheritance
DelegateRetriever
Implements
Inherited Members

Constructors

DelegateRetriever(string, Func<string, RetrievalRequest, CancellationToken, Task<IEnumerable<RagSource>>>)

Creates a retriever that forwards every call to retrieve.

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.