QdrantVectorStoreRecordCollection<TRecord>.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAsync(Guid, GetRecordOptions, CancellationToken) |
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found. |
GetAsync(UInt64, GetRecordOptions, CancellationToken) |
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found. |
GetAsync(Guid, GetRecordOptions, CancellationToken)
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.
public System.Threading.Tasks.Task<TRecord?> GetAsync (Guid key, Microsoft.SemanticKernel.Data.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Guid * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record (requires 'Record : null)>
override this.GetAsync : Guid * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record (requires 'Record : null)>
Public Function GetAsync (key As Guid, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)
Parameters
- key
- Guid
The unique id associated with the record to get.
- options
- GetRecordOptions
Optional options for retrieving the record.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
The record if found, otherwise null.
Implements
Applies to
GetAsync(UInt64, GetRecordOptions, CancellationToken)
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.
public System.Threading.Tasks.Task<TRecord?> GetAsync (ulong key, Microsoft.SemanticKernel.Data.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : uint64 * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record (requires 'Record : null)>
override this.GetAsync : uint64 * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record (requires 'Record : null)>
Public Function GetAsync (key As ULong, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)
Parameters
- key
- UInt64
The unique id associated with the record to get.
- options
- GetRecordOptions
Optional options for retrieving the record.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
The record if found, otherwise null.