ferruzzi commented on code in PR #39500:
URL: https://github.com/apache/airflow/pull/39500#discussion_r1599301829
##########
tests/system/providers/amazon/aws/example_bedrock_knowledge_base.py:
##########
@@ -480,6 +483,24 @@ def delete_opensearch_policies(collection_name: str):
)
# [END howto_sensor_bedrock_ingest_data]
+ # [START howto_operator_bedrock_retrieve_and_generate]
+ retrieve_and_generate = BedrockRaGOperator(
+ task_id="retrieve_and_generate",
+ input="Who was the CEO of Amazon on 2022?",
+ source_type="KNOWLEDGE_BASE",
Review Comment:
I have added it in, but I did not realize that the "external sources"
feature was only recently added in botocore. I tested it by launching breeze
and running `pip install boto3==1.34.90` then running the dag. So it does work
IF the user installs a version of boto which might cause issues with
aiobotocore.
The latest version of aiobotocore constrains botocore<1.34.70,>=1.34.41.
I'm not entirely sure what the best way to handle this would be. Very open
to suggestions and advice on this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]