Method GetQueryEmbeddingsAsync
- Namespace
- LMKit.Abstractions
- Assembly
- LM-Kit.NET.dll
GetQueryEmbeddingsAsync(string, CancellationToken)
Asynchronously generates the embedding vector for a search query, applying any query-specific instruction the model supports.
Task<float[]> GetQueryEmbeddingsAsync(string query, CancellationToken cancellationToken = default)
Parameters
querystringThe query text to embed. Cannot be null or empty.
cancellationTokenCancellationTokenOptional token to cancel the operation.