Method GetMetadataAsync
GetMetadataAsync(string, string, CancellationToken)
Asynchronously retrieves the metadata associated with a specific vector entry in a collection.
public Task<MetadataCollection> GetMetadataAsync(string collectionIdentifier, string id, CancellationToken cancellationToken = default)Parameters
- collectionIdentifierstring
- The name of the collection from which to retrieve metadata. 
- idstring
- The unique identifier of the vector entry whose metadata is requested. 
- cancellationTokenCancellationToken
- An 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.