You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integrations/amazon_bedrock/src/haystack_integrations/components/embedders/amazon_bedrock/document_embedder.py
+12-26Lines changed: 12 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
importjson
2
-
fromtypingimportAny, Literal, Optional
2
+
fromtypingimportAny, Optional
3
3
4
4
frombotocore.configimportConfig
5
5
frombotocore.exceptionsimportClientError
@@ -16,15 +16,6 @@
16
16
17
17
logger=logging.getLogger(__name__)
18
18
19
-
SUPPORTED_EMBEDDING_MODELS= [
20
-
"amazon.titan-embed-text-v1",
21
-
"amazon.titan-embed-text-v2:0",
22
-
"amazon.titan-embed-image-v1",
23
-
"cohere.embed-english-v3",
24
-
"cohere.embed-multilingual-v3",
25
-
"cohere.embed-v4:0",
26
-
]
27
-
28
19
29
20
@component
30
21
classAmazonBedrockDocumentEmbedder:
@@ -58,14 +49,7 @@ class AmazonBedrockDocumentEmbedder:
Copy file name to clipboardExpand all lines: integrations/amazon_bedrock/src/haystack_integrations/components/embedders/amazon_bedrock/document_image_embedder.py
+17-25Lines changed: 17 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
importjson
6
6
fromdataclassesimportreplace
7
-
fromtypingimportAny, Literal, Optional
7
+
fromtypingimportAny, Optional
8
8
9
9
frombotocore.configimportConfig
10
10
frombotocore.exceptionsimportClientError
@@ -27,13 +27,6 @@
27
27
28
28
logger=logging.getLogger(__name__)
29
29
30
-
SUPPORTED_EMBEDDING_MODELS= [
31
-
"amazon.titan-embed-image-v1",
32
-
"cohere.embed-english-v3",
33
-
"cohere.embed-multilingual-v3",
34
-
"cohere.embed-v4:0",
35
-
]
36
-
37
30
38
31
@component
39
32
classAmazonBedrockDocumentImageEmbedder:
@@ -74,12 +67,7 @@ class AmazonBedrockDocumentImageEmbedder:
Copy file name to clipboardExpand all lines: integrations/amazon_bedrock/src/haystack_integrations/components/embedders/amazon_bedrock/text_embedder.py
+12-25Lines changed: 12 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
importjson
2
-
fromtypingimportAny, Literal, Optional
2
+
fromtypingimportAny, Optional
3
3
4
4
frombotocore.configimportConfig
5
5
frombotocore.exceptionsimportClientError
@@ -14,15 +14,6 @@
14
14
15
15
logger=logging.getLogger(__name__)
16
16
17
-
SUPPORTED_EMBEDDING_MODELS= [
18
-
"amazon.titan-embed-text-v1",
19
-
"amazon.titan-embed-text-v2:0",
20
-
"amazon.titan-embed-image-v1",
21
-
"cohere.embed-english-v3",
22
-
"cohere.embed-multilingual-v3",
23
-
"cohere.embed-v4:0",
24
-
]
25
-
26
17
27
18
@component
28
19
classAmazonBedrockTextEmbedder:
@@ -51,14 +42,7 @@ class AmazonBedrockTextEmbedder:
0 commit comments