Skip to content

Commit d77567e

Browse files
authored
Merge branch 'aws-samples:main' into main
2 parents 796670b + aed5730 commit d77567e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/models/bedrock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_inference_region_prefix():
6969
"cohere.embed-multilingual-v3": "Cohere Embed Multilingual",
7070
"cohere.embed-english-v3": "Cohere Embed English",
7171
# Disable Titan embedding.
72-
# "amazon.titan-embed-text-v1": "Titan Embeddings G1 - Text",
72+
"amazon.titan-embed-text-v2:0": "Titan Embeddings G2 - Text",
7373
# "amazon.titan-embed-image-v1": "Titan Multimodal Embeddings G1"
7474
}
7575

@@ -864,6 +864,8 @@ def get_embeddings_model(model_id: str) -> BedrockEmbeddingsModel:
864864
match model_name:
865865
case "Cohere Embed Multilingual" | "Cohere Embed English":
866866
return CohereEmbeddingsModel()
867+
case "Titan Embeddings G2 - Text":
868+
return TitanEmbeddingsModel()
867869
case _:
868870
logger.error("Unsupported model id " + model_id)
869871
raise HTTPException(

0 commit comments

Comments
 (0)