Interface ITextEmbeddingService
- Namespace
 - FoundationaLLM.Common.Interfaces
 
- Assembly
 - FoundationaLLM.Common.dll
 
Provides text embedding capabilities.
public interface ITextEmbeddingService
  - Extension Methods
 
Methods
GetEmbeddingsAsync(IList<TextChunk>, string, int, bool)
Initializes the text embedding operation. Depending on the implementation, this can be an atomic operation or a long-running one.
Task<TextOperationResult> GetEmbeddingsAsync(IList<TextChunk> textChunks, string deploymentName, int embeddingDimensions, bool prioritized)
  Parameters
textChunksIList<TextChunk>The list of text chunks which need to be embedded.
deploymentNamestringThe name of the model deployment to use for embedding.
embeddingDimensionsintThe number of dimensions for the embedding model.
prioritizedboolIndicates whether the request should be prioritized.
Returns
- Task<TextOperationResult>
 A TextOperationResult object containing the result of the text embedding operation.
GetEmbeddingsAsync(string)
Retrieves the result of a long-running text embedding operation.
Task<TextOperationResult> GetEmbeddingsAsync(string operationId)
  Parameters
operationIdstringThe unique identifier of the long-running operation.
Returns
- Task<TextOperationResult>
 A TextOperationResult object containing the result of the text embedding operation.