Skip to content

Commit 5c0e6c8

Browse files
committed
freeze dependencies
1 parent f6c7aa8 commit 5c0e6c8

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ AI21 Labs:
6161
>>- `--early-stop` to load only 100 embedded documents into OpenSearch
6262
>>- `--index` to use a different index than the default **rag**
6363
>>- `--region` in case you are not using the default **us-east-1**
64+
>>- `--multi-tenant` to use multi tenancy, will load data with tenant IDs (1-5)
65+
6466
6567
3. Now that we have embedded text, into our OpenSearch cluster, we can start querying our LLM model Titan text in Amazon Bedrock with RAG
6668
@@ -72,6 +74,8 @@ AI21 Labs:
7274
>>- `--index` to use a different index than the default **rag**
7375
>>- `--region` in case you are not using the default **us-east-1**
7476
>>- `--bedrock-model-id` to choose different models than Anthropic's Claude v2
77+
>>- `--tenant-id` to filter only a specific tenant ID
78+
7579

7680
### Cleanup
7781

ask-bedrock-with-rag.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def main():
109109
logger.info("These are the similar documents from OpenSearch based on the provided query:")
110110
source_documents = response.get('context')
111111
for d in source_documents:
112-
print (f"tenant_id={tenant_id}")
113112
logger.info(f"Text: {d.page_content}")
114113

115114
print("")

requirements.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
boto3
2-
langchain
3-
langchain-community
4-
langchain-core
5-
coloredlogs
6-
jq
7-
opensearch-py
8-
loguru
1+
boto3>=1.35.73
2+
langchain==0.1.14
3+
langchain-community==0.0.36
4+
langchain-core==0.1.50
5+
coloredlogs>=15.0.1
6+
jq==1.7.0
7+
opensearch-py==2.5.0
8+
loguru==0.7.2

0 commit comments

Comments
 (0)