Skip to content

Commit

Permalink
fix(nbs): Pydantic version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
athewsey committed Jul 9, 2024
1 parent 6883bae commit 8ec2c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RAG (Bedrock and Ragas).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Evaluating Knowledge Bases for Amazon Bedrock with Ragas\n",
"\n",
"> *This notebook has been tested in the Python 3 kernel of SageMaker Studio JupyterLab (Distribution v1.7)*\n",
"> *This notebook has been tested in the Python 3 kernel of SageMaker Studio JupyterLab (Distribution v1.9)*\n",
"\n",
"In this notebook, we'll explore how open-source library [Ragas](https://docs.ragas.io/en/latest/) can be applied to evaluate the quality of [Retrieval-Augmented Generation (RAG)](https://aws.amazon.com/what-is/retrieval-augmented-generation/) flows managed by [Amazon Bedrock Knowledge Bases](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html)."
]
Expand Down Expand Up @@ -51,7 +51,7 @@
"outputs": [],
"source": [
"# We also force Pydantic version to avoid: https://github.com/explodinggradients/ragas/issues/867\n",
"%pip install \"langchain-aws>=0.1,<0.2\" \"ragas==0.1.8\" \"pydantic>=2,<3\""
"%pip install \"langchain-aws>=0.1,<0.2\" \"ragas==0.1.8\" \"pydantic>=2.8,<3\""
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions conversational-tests/Conversational Tests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Conversational tests with `agent-evaluation`\n",
"\n",
"> *This notebook has been tested in the Python 3 kernel of SageMaker Studio JupyterLab (Distribution v1.7)*\n",
"> *This notebook has been tested in the Python 3 kernel of SageMaker Studio JupyterLab (Distribution v1.9)*\n",
"\n",
"In this notebook, we'll show how you can use AWS Labs' open-source [`agent-evaluation` framework](https://awslabs.github.io/agent-evaluation/) to validate integrated agent systems perform as expected over multi-turn conversations - with expectations defined in natural language."
]
Expand All @@ -31,7 +31,8 @@
},
"outputs": [],
"source": [
"%pip install agent-evaluation"
"# Force Pydantic for https://github.com/aws/sagemaker-distribution/issues/436\n",
"%pip install agent-evaluation \"pydantic>=2.8,<2.9\""
]
},
{
Expand Down

0 comments on commit 8ec2c3c

Please sign in to comment.