Method RecallAsync
- Namespace
- IntentSharp.Memory
- Assembly
- IntentSharp.dll
RecallAsync(string, int, CancellationToken)
Returns up to maxResults entries most similar to query, newer first among
equal scores. Uses embedding similarity for entries that have an embedding when the query can be embedded, and
word overlap otherwise; entries with no similarity are left out.
public Task<IReadOnlyList<MemoryMatch>> RecallAsync(string query, int maxResults = 5, CancellationToken cancellationToken = default)
Parameters
querystringmaxResultsintcancellationTokenCancellationToken
Returns
- Task<IReadOnlyList<MemoryMatch>>