Method RecallAsync
- Namespace
- IntentSharp.Memory
- Assembly
- IntentSharp.dll
RecallAsync(string, int, CancellationToken)
Returns up to maxResults of the most recent RecallCandidateLimit entries, most
similar to query first and 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>>