Package org.springframework.ai.embedding
Interface DocumentEmbeddingModel
- All Superinterfaces:
Model<DocumentEmbeddingRequest,
EmbeddingResponse>
- All Known Implementing Classes:
VertexAiMultimodalEmbeddingModel
EmbeddingModel is a generic interface for embedding models.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptioncall
(DocumentEmbeddingRequest request) Executes a method call to the AI model.int
-
Method Details
-
call
Description copied from interface:Model
Executes a method call to the AI model.- Specified by:
call
in interfaceModel<DocumentEmbeddingRequest,
EmbeddingResponse> - Parameters:
request
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
dimensions
int dimensions()
-