Table of Contents

Class EmbeddingsController

Namespace
FoundationaLLM.Gateway.API.Controllers
Assembly
FoundationaLLM.Gateway.API.dll

Methods for managing embedding requests.

[ApiController]
[APIKeyAuthentication]
[Route("instances/{instanceId}/[controller]")]
public class EmbeddingsController
Inheritance
EmbeddingsController
Inherited Members
Extension Methods

Constructors

EmbeddingsController(IGatewayCore, IOrchestrationContext)

Methods for managing embedding requests.

public EmbeddingsController(IGatewayCore gatewayCore, IOrchestrationContext callContext)

Parameters

gatewayCore IGatewayCore

The IGatewayCore that provides LLM gateway services.

callContext IOrchestrationContext

The IOrchestrationContext call context of the request being handled.

Methods

GetEmbeddingOperationResult(string, string)

Retrieves the outcome of a text embedding operation.

[HttpGet]
public Task<IActionResult> GetEmbeddingOperationResult(string instanceId, string operationId)

Parameters

instanceId string

The FoundationaLLM instance id.

operationId string

The unique identifier of the text embedding operation.

Returns

Task<IActionResult>

A TextEmbeddingResult object with the outcome of the operation.

StartEmbeddingOperation(string, TextEmbeddingRequest)

Handles an incoming text embedding request by starting a new embedding operation.

[HttpPost]
public Task<IActionResult> StartEmbeddingOperation(string instanceId, TextEmbeddingRequest embeddingRequest)

Parameters

instanceId string

The FoundationaLLM instance id.

embeddingRequest TextEmbeddingRequest

The TextEmbeddingRequest object with the details of the embedding request.

Returns

Task<IActionResult>

A TextEmbeddingResult object with the outcome of the operation.