File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments