GetAsync(IEnumerable<Object>, RecordRetrieveOptions?, CancellationToken)

This method retrieves a batch of records from the vector store. It does not guarantee that the collection exists and returns null if the record is not found.

Declaration

// C# 
public async IAsyncEnumerable<Dictionary<string, object?>?> GetAsync(IEnumerable<Object> keys, RecordRetrieveOptions? options = null,  CancellationToken cancellationToken = default);

Parameters

  • key

    The unique IDs associated with the records to retrieve.

  • options

    Optional options for retrieving the records.

  • cancellationToken

    The cancellation token.

Return Value

IAsyncEnumerable<Dictionary<string, object?> object representing the result set of found records.

Implements

Microsoft.Extensions.VectorData.VectorStoreCollection

Exceptions

VectorStoreException: The command fails to execute for any reason other than the absence of a record.

Remarks

Unlike OracleCollection, OracleDynamicColloection uses Object as TKey, and Dictionary<string, object?> as TRecord. Please make sure to use the correct parameter types: IEnumerable<Object> for keys.