Class EmbeddingModelDeploymentContext
- Namespace
- FoundationaLLM.Gateway.Models
- Assembly
- FoundationaLLM.Gateway.dll
Provides context associated with an embedding model deployment.
public class EmbeddingModelDeploymentContext
- Inheritance
-
EmbeddingModelDeploymentContext
- Inherited Members
- Extension Methods
Constructors
EmbeddingModelDeploymentContext(AzureOpenAIAccountDeployment, ILoggerFactory)
Provides context associated with an embedding model deployment.
public EmbeddingModelDeploymentContext(AzureOpenAIAccountDeployment deployment, ILoggerFactory loggerFactory)
Parameters
deployment
AzureOpenAIAccountDeploymentThe AzureOpenAIAccountDeployment object with the details of the model deployment.
loggerFactory
ILoggerFactoryThe ILoggerFactory used to create loggers for logging.
Properties
HasInput
public bool HasInput { get; }
Property Value
Methods
GetEmbeddingsForInputTextChunks()
public Task<TextEmbeddingResult> GetEmbeddingsForInputTextChunks()
Returns
TryAddInputTextChunk(TextChunk)
public bool TryAddInputTextChunk(TextChunk textChunk)
Parameters
textChunk
TextChunk