Method RetrieveFromMetadataAsync
RetrieveFromMetadataAsync(string, MetadataCollection, bool, bool, CancellationToken)
Asynchronously retrieves vector entries from the specified collection that match the given metadata criteria.
public Task<List<PointEntry>> RetrieveFromMetadataAsync(string collectionIdentifier, MetadataCollection metadata, bool getVector, bool getMetadata, CancellationToken cancellationToken = default)Parameters
- collectionIdentifierstring
- The name of the collection to search within. 
- metadataMetadataCollection
- A collection of metadata key-value pairs to filter the search results. Only entries that match these pairs are returned. 
- getVectorbool
- If - true, the vector data for each matching entry will be included in the returned PointEntry.
- getMetadatabool
- If - true, the metadata for each matching entry will be included in the returned PointEntry.
- cancellationTokenCancellationToken
- An 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.