Skip to content

Commit

Permalink
Backport PR #778: Add Titan embedding model v2 (#779)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanjiv Das <[email protected]>
  • Loading branch information
meeseeksmachine and srdas authored May 8, 2024
1 parent 90649f1 commit 7580980
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ class HfHubEmbeddingsProvider(BaseEmbeddingsProvider, HuggingFaceHubEmbeddings):
registry = True


# See model ID list here: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
class BedrockEmbeddingsProvider(BaseEmbeddingsProvider, BedrockEmbeddings):
id = "bedrock"
name = "Bedrock"
models = ["amazon.titan-embed-text-v1"]
models = ["amazon.titan-embed-text-v1", "amazon.titan-embed-text-v2:0"]
model_id_key = "model_id"
pypi_package_deps = ["boto3"]
auth_strategy = AwsAuthStrategy()
Expand Down

0 comments on commit 7580980

Please sign in to comment.