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, double, ILoggerFactory, GatewayMetrics)
Provides context associated with an embedding model deployment.
public EmbeddingModelDeploymentContext(AzureOpenAIAccountDeployment deployment, double tokenRateLimitMultiplier, ILoggerFactory loggerFactory, GatewayMetrics metrics)
Parameters
deployment
AzureOpenAIAccountDeploymentThe AzureOpenAIAccountDeployment object with the details of the model deployment.
tokenRateLimitMultiplier
doubleThe token rate limit multiplier used to account for the tokenization differences between the Gateway API and the deployed model.
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<List<EmbeddingRequestResult>> GetEmbeddingsForInputTextChunks()
Returns
TryAddInputTextChunk(TextChunk, int)
public bool TryAddInputTextChunk(TextChunk textChunk, int embeddingDimensions)