Method GetMetadataAsync
GetMetadataAsync(string, string, CancellationToken)
Asynchronously retrieves the metadata associated with a specific vector entry in a collection.
Task<MetadataCollection> GetMetadataAsync(string collectionIdentifier, string id, CancellationToken cancellationToken = default)
Parameters
collectionIdentifierstringThe name of the collection from which to retrieve metadata.
idstringThe unique identifier of the vector entry whose metadata is requested.
cancellationTokenCancellationTokenAn optional token to cancel the asynchronous retrieval operation.
Returns
- Task<MetadataCollection>
A task representing the asynchronous operation. The task result contains the MetadataCollection associated with the specified vector entry.