Method RetrieveFromMetadataAsync
RetrieveFromMetadataAsync(string, MetadataCollection, bool, bool, CancellationToken)
Asynchronously retrieves vector entries from the specified collection that match the given metadata criteria.
Task<List<PointEntry>> RetrieveFromMetadataAsync(string collectionIdentifier, MetadataCollection metadata, bool getVector, bool getMetadata, CancellationToken cancellationToken = default)
Parameters
collectionIdentifierstringThe name of the collection to search within.
metadataMetadataCollectionA collection of metadata key-value pairs to filter the search results. Only entries that match these pairs are returned.
getVectorboolIf
true, the vector data for each matching entry will be included in the returned PointEntry.getMetadataboolIf
true, the metadata for each matching entry will be included in the returned PointEntry.cancellationTokenCancellationTokenAn optional token that can be used to cancel the asynchronous retrieval operation.
Returns
- Task<List<PointEntry>>
A task representing the asynchronous retrieval operation. The task result is a list of PointEntry items. Each PointEntry may include vector data and/or metadata based on the parameters specified.