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
gatewayCoreIGatewayCoreThe IGatewayCore that provides LLM gateway services.
callContextIOrchestrationContextThe 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
instanceIdstringThe FoundationaLLM instance id.
operationIdstringThe unique identifier of the text embedding operation.
Returns
- Task<IActionResult>
A TextOperationResult 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
instanceIdstringThe FoundationaLLM instance id.
embeddingRequestTextEmbeddingRequestThe TextEmbeddingRequest object with the details of the embedding request.
Returns
- Task<IActionResult>
A TextOperationResult object with the outcome of the operation.