Method RetrieveAsync
RetrieveAsync(KnowledgeQuery, CancellationToken)
Returns the passages that best match query, best first.
public Task<IReadOnlyList<KnowledgeEvidence>> RetrieveAsync(KnowledgeQuery query, CancellationToken cancellationToken = default)
Parameters
queryKnowledgeQueryWhat to search for.
cancellationTokenCancellationTokenCancels the search.
Returns
- Task<IReadOnlyList<KnowledgeEvidence>>
The matching passages, best first; empty when nothing matches.