Package org.springframework.ai.embedding
Class DocumentEmbeddingRequest
java.lang.Object
org.springframework.ai.embedding.DocumentEmbeddingRequest
- All Implemented Interfaces:
ModelRequest<List<Document>>
Represents a request to embed a list of documents.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Constructor Summary
ConstructorDescriptionDocumentEmbeddingRequest
(List<Document> inputs) DocumentEmbeddingRequest
(List<Document> inputs, EmbeddingOptions options) DocumentEmbeddingRequest
(Document... inputs) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the instructions or input required by the AI model.Retrieves the customizable options for AI model interactions.
-
Constructor Details
-
DocumentEmbeddingRequest
-
DocumentEmbeddingRequest
-
DocumentEmbeddingRequest
-
-
Method Details
-
getInstructions
Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<List<Document>>
- Returns:
- the instructions or input required by the AI model
-
getOptions
Description copied from interface:ModelRequest
Retrieves the customizable options for AI model interactions.- Specified by:
getOptions
in interfaceModelRequest<List<Document>>
- Returns:
- the customizable options for AI model interactions
-