Table of Contents

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 AzureOpenAIAccountDeployment

The AzureOpenAIAccountDeployment object with the details of the model deployment.

loggerFactory ILoggerFactory

The ILoggerFactory used to create loggers for logging.

Properties

HasInput

public bool HasInput { get; }

Property Value

bool

Methods

GetEmbeddingsForInputTextChunks()

public Task<TextEmbeddingResult> GetEmbeddingsForInputTextChunks()

Returns

Task<TextEmbeddingResult>

TryAddInputTextChunk(TextChunk)

public bool TryAddInputTextChunk(TextChunk textChunk)

Parameters

textChunk TextChunk

Returns

bool