Table of Contents

Method RetrieveAsync

Namespace
LMKit.Agents.Knowledge
Assembly
LM-Kit.NET.dll

RetrieveAsync(KnowledgeQuery, CancellationToken)

Returns the passages that best match query, best first.

Task<IReadOnlyList<KnowledgeEvidence>> RetrieveAsync(KnowledgeQuery query, CancellationToken cancellationToken = default)

Parameters

query KnowledgeQuery

What to search for.

cancellationToken CancellationToken

Cancels the search.

Returns

Task<IReadOnlyList<KnowledgeEvidence>>

The matching passages, best first; empty when nothing matches.

Share