Skip to content

Commit 7fbd35c

Browse files
authored
fix: change aws-bedrock to bedrock (#375)
1 parent 7e41aae commit 7fbd35c

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## 0.4.8-dev1
1+
## 0.5.0
22

33
### Fixes
44

5+
* **Change aws-bedrock to bedrock**
56
* **Update Sharepoint tests**
67

78
### Enhancements
File renamed without changes.

requirements/embed/aws-bedrock.txt renamed to requirements/embed/bedrock.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile aws-bedrock.in --output-file aws-bedrock.txt --no-strip-extras --python-version 3.9
2+
# uv pip compile ./embed/bedrock.in --output-file ./embed/bedrock.txt --no-strip-extras --python-version 3.9
33
aioboto3==13.1.1
4-
# via -r aws-bedrock.in
4+
# via -r ./embed/bedrock.in
55
aiobotocore[boto3]==2.13.1
66
# via aioboto3
77
aiofiles==24.1.0
88
# via aioboto3
99
aiohappyeyeballs==2.4.4
1010
# via aiohttp
11-
aiohttp==3.11.10
11+
aiohttp==3.11.12
1212
# via aiobotocore
1313
aioitertools==0.12.0
1414
# via aiobotocore
15-
aiosignal==1.3.1
15+
aiosignal==1.3.2
1616
# via aiohttp
1717
async-timeout==5.0.1
1818
# via aiohttp
19-
attrs==24.2.0
19+
attrs==25.1.0
2020
# via aiohttp
2121
boto3==1.34.131
2222
# via
23-
# -r aws-bedrock.in
23+
# -r ./embed/bedrock.in
2424
# aiobotocore
2525
botocore==1.34.131
2626
# via
27-
# -c ../common/constraints.txt
27+
# -c ./embed/../common/constraints.txt
2828
# aiobotocore
2929
# boto3
3030
# s3transfer
@@ -58,11 +58,11 @@ typing-extensions==4.12.2
5858
# multidict
5959
urllib3==1.26.20
6060
# via
61-
# -c ../common/constraints.txt
61+
# -c ./embed/../common/constraints.txt
6262
# botocore
63-
wrapt==1.17.0
63+
wrapt==1.17.2
6464
# via
65-
# -c ../common/constraints.txt
65+
# -c ./embed/../common/constraints.txt
6666
# aiobotocore
6767
yarl==1.18.3
6868
# via aiohttp

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def load_requirements(file: Union[str, Path]) -> List[str]:
142142
"embed-voyageai": load_requirements("requirements/embed/voyageai.in"),
143143
"embed-mixedbreadai": load_requirements("requirements/embed/mixedbreadai.in"),
144144
"openai": load_requirements("requirements/embed/openai.in"),
145-
"bedrock": load_requirements("requirements/embed/aws-bedrock.in"),
145+
"bedrock": load_requirements("requirements/embed/bedrock.in"),
146146
"togetherai": load_requirements("requirements/embed/togetherai.in"),
147147
}
148148

test/integration/embedders/test_bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_aws_credentials() -> dict:
3131
def test_bedrock_embedder(embedder_file: Path):
3232
aws_credentials = get_aws_credentials()
3333
embedder_config = EmbedderConfig(
34-
embedding_provider="aws-bedrock",
34+
embedding_provider="bedrock",
3535
embedding_aws_access_key_id=aws_credentials["aws_access_key_id"],
3636
embedding_aws_secret_access_key=aws_credentials["aws_secret_access_key"],
3737
)

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.8-dev1" # pragma: no cover
1+
__version__ = "0.5.0" # pragma: no cover

unstructured_ingest/cli/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def get_cli_options() -> t.List[click.Option]:
417417
embed_providers = [
418418
"openai",
419419
"huggingface",
420-
"aws-bedrock",
420+
"bedrock",
421421
"vertexai",
422422
"voyageai",
423423
"octoai",

unstructured_ingest/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def get_embedder(self) -> "BaseEmbeddingEncoder":
226226
)
227227

228228
return OctoAIEmbeddingEncoder(config=OctoAiEmbeddingConfig(**kwargs))
229-
elif self.provider == "aws-bedrock":
229+
elif self.provider == "bedrock":
230230
from unstructured_ingest.embed.bedrock import (
231231
BedrockEmbeddingConfig,
232232
BedrockEmbeddingEncoder,

unstructured_ingest/v2/processes/embedder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class EmbedderConfig(BaseModel):
1818
"openai",
1919
"azure-openai",
2020
"huggingface",
21-
"aws-bedrock",
21+
"bedrock",
2222
"vertexai",
2323
"voyageai",
2424
"octoai",
@@ -162,7 +162,7 @@ def get_embedder(self) -> "BaseEmbeddingEncoder":
162162
if self.embedding_provider == "octoai":
163163
return self.get_octoai_embedder(embedding_kwargs=kwargs)
164164

165-
if self.embedding_provider == "aws-bedrock":
165+
if self.embedding_provider == "bedrock":
166166
return self.get_bedrock_embedder()
167167

168168
if self.embedding_provider == "vertexai":

0 commit comments

Comments
 (0)