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, GatewayMetrics)
Provides context associated with an embedding model deployment.
public EmbeddingModelDeploymentContext(AzureOpenAIAccountDeployment deployment, ILoggerFactory loggerFactory, GatewayMetrics metrics)
Parameters
deployment
AzureOpenAIAccountDeploymentThe AzureOpenAIAccountDeployment object with the details of the model deployment.
loggerFactory
ILoggerFactoryThe ILoggerFactory used to create loggers for logging.
metrics
GatewayMetricsThe FoundationaLLM Gateway telemetry metrics.
Properties
HasInput
public bool HasInput { get; }
Property Value
Methods
GetEmbeddingsForInputTextChunks()
public Task<TextEmbeddingResult> GetEmbeddingsForInputTextChunks()
Returns
TryAddInputTextChunk(TextChunk, int)
public bool TryAddInputTextChunk(TextChunk textChunk, int embeddingDimensions)