From 9b495a2312af324084a760369663633fc5534dcb Mon Sep 17 00:00:00 2001 From: gautamgambhir97 <140384949+gautamgambhir97@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:49:59 +0530 Subject: [PATCH] fix(docs): update the dependencies for langchain rag agent (#1057) --- pages/examples/intermediate/langchain-rag.mdx | 21 ++++++++++--------- .../intermediate/langchain-rag-agent.mdx | 21 ++++++++++--------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/pages/examples/intermediate/langchain-rag.mdx b/pages/examples/intermediate/langchain-rag.mdx index d9cbffe7..ee4ab9be 100644 --- a/pages/examples/intermediate/langchain-rag.mdx +++ b/pages/examples/intermediate/langchain-rag.mdx @@ -91,17 +91,18 @@ export OPENAI_API_KEY="YOUR_OPENAI_API_KEY" ``` [tool.poetry.dependencies] python = ">=3.10,<3.12" -uagents = "*" +uagents = "^0.17.1" requests = "^2.31.0" -langchain = "^0.2.11" -openai = "^1.12.0" -langchain-openai = "^0.1.19" -tiktoken = "^0.7.0" -cohere = "^4.47" -faiss-cpu = "^1.7.4" -validators = "^0.22.0" -uagents-ai-engine = "^0.4.0" -unstructured = "^0.12.4" +langchain = "^0.3.7" +openai = "^1.54.5" +langchain-openai = "^0.2.9" +tiktoken = "^0.8.0" +cohere = "^5.11.4" +faiss-cpu = "^1.9.0.post1" +validators = "^0.34.0" +uagents-ai-engine = "^0.6.0" +unstructured = "^0.16.5" +langchain-community = "^0.3.7" ``` ### RagRequest Model diff --git a/pages/guides/agents/intermediate/langchain-rag-agent.mdx b/pages/guides/agents/intermediate/langchain-rag-agent.mdx index 026d80ae..cce75158 100644 --- a/pages/guides/agents/intermediate/langchain-rag-agent.mdx +++ b/pages/guides/agents/intermediate/langchain-rag-agent.mdx @@ -107,17 +107,18 @@ You'll need several Python packages for the project. These can be managed effici ``` [tool.poetry.dependencies] python = ">=3.10,<3.12" - uagents = "*" + uagents = "^0.17.1" requests = "^2.31.0" - langchain = "^0.2.11" - openai = "^1.12.0" - langchain-openai = "^0.1.19" - tiktoken = "^0.7.0" - cohere = "^4.47" - faiss-cpu = "^1.7.4" - validators = "^0.22.0" - uagents-ai-engine = "^0.4.0" - unstructured = "^0.12.4" + langchain = "^0.3.7" + openai = "^1.54.5" + langchain-openai = "^0.2.9" + tiktoken = "^0.8.0" + cohere = "^5.11.4" + faiss-cpu = "^1.9.0.post1" + validators = "^0.34.0" + uagents-ai-engine = "^0.6.0" + unstructured = "^0.16.5" + langchain-community = "^0.3.7" ``` ## Messages Data Model