Package dev.langchain4j.model.bedrock
Class BedrockTitanEmbeddingModel
java.lang.Object
dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel<BedrockTitanEmbeddingResponse>
dev.langchain4j.model.bedrock.BedrockTitanEmbeddingModel
- All Implemented Interfaces:
EmbeddingModel
public class BedrockTitanEmbeddingModel
extends AbstractBedrockEmbeddingModel<BedrockTitanEmbeddingResponse>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get model idgetRequestParameters
(List<TextSegment> textSegments) Get request bodyprotected Class
<BedrockTitanEmbeddingResponse> Get response class typeMethods inherited from class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
embedAll, invoke, of
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.embedding.EmbeddingModel
dimension, embed, embed
-
Constructor Details
-
BedrockTitanEmbeddingModel
public BedrockTitanEmbeddingModel()
-
-
Method Details
-
getModelId
Description copied from class:AbstractBedrockEmbeddingModel
Get model id- Specified by:
getModelId
in classAbstractBedrockEmbeddingModel<BedrockTitanEmbeddingResponse>
- Returns:
- model id
-
getRequestParameters
Description copied from class:AbstractBedrockEmbeddingModel
Get request body- Specified by:
getRequestParameters
in classAbstractBedrockEmbeddingModel<BedrockTitanEmbeddingResponse>
- Parameters:
textSegments
- Input texts to convert to embedding- Returns:
- request body
-
getResponseClassType
Description copied from class:AbstractBedrockEmbeddingModel
Get response class type- Specified by:
getResponseClassType
in classAbstractBedrockEmbeddingModel<BedrockTitanEmbeddingResponse>
- Returns:
- response class type
-