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
IGatewayCoreThe IGatewayCore that provides LLM gateway services.
callContext
IOrchestrationContextThe 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
stringThe FoundationaLLM instance id.
operationId
stringThe 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
stringThe FoundationaLLM instance id.
embeddingRequest
TextEmbeddingRequestThe TextEmbeddingRequest object with the details of the embedding request.
Returns
- Task<IActionResult>
A TextEmbeddingResult object with the outcome of the operation.