From b48c6f1218cec71614eaf28ac3811d31e3c688b4 Mon Sep 17 00:00:00 2001 From: Data-drone Date: Tue, 19 Sep 2023 10:18:18 +1000 Subject: [PATCH] fixed langchain version and added async fix --- 1.1_Evaluations.py | 5 ++++- 1.2_Advanced_Chunking.py | 2 +- 1.3_Evaluating_Embeddings.py | 4 ++-- 1.4_Advanced_RAG.py | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/1.1_Evaluations.py b/1.1_Evaluations.py index 3143313..d0d5d10 100644 --- a/1.1_Evaluations.py +++ b/1.1_Evaluations.py @@ -10,7 +10,7 @@ # COMMAND ---------- -%pip install llama_index==0.8.9 +%pip install llama_index==0.8.9 langchain==0.0.284 # COMMAND ---------- @@ -18,6 +18,9 @@ # COMMAND ---------- +%autoawait asyncio +# COMMAND ---------- + # MAGIC %md # MAGIC # Intro to Llama Index # MAGIC Much like langchain, llama_index is an orchestration layer for LLM logic \ diff --git a/1.2_Advanced_Chunking.py b/1.2_Advanced_Chunking.py index 2a4e13b..939ee8f 100644 --- a/1.2_Advanced_Chunking.py +++ b/1.2_Advanced_Chunking.py @@ -8,7 +8,7 @@ # COMMAND ---------- -%pip install -U pymupdf unstructured["local-inference"] sqlalchemy 'git+https://github.com/facebookresearch/detectron2.git' poppler-utils ctransformers scrapy llama_index==0.8.9 opencv-python +%pip install -U pymupdf unstructured["local-inference"] sqlalchemy 'git+https://github.com/facebookresearch/detectron2.git' poppler-utils ctransformers scrapy llama_index==0.8.9 langchain==0.0.284 opencv-python # COMMAND ---------- diff --git a/1.3_Evaluating_Embeddings.py b/1.3_Evaluating_Embeddings.py index 373fcca..979f19e 100644 --- a/1.3_Evaluating_Embeddings.py +++ b/1.3_Evaluating_Embeddings.py @@ -6,8 +6,8 @@ # MAGIC for more info see: https://docs.arize.com/phoenix/ # COMMAND ---------- - -%pip install -U llama_index==0.8.9 "arize-phoenix[experimental]" pandas==1.5.3 faiss-cpu datashader bokeh holoviews scikit-image colorcet +# MAGIC # "arize-phoenix[experimental]" pandas==1.5.3 +# MAGIC %pip install -U llama_index==0.8.9 langchain==0.0.284 faiss-cpu datashader bokeh holoviews scikit-image colorcet # COMMAND ---------- diff --git a/1.4_Advanced_RAG.py b/1.4_Advanced_RAG.py index f1a4e9a..95bc4ae 100644 --- a/1.4_Advanced_RAG.py +++ b/1.4_Advanced_RAG.py @@ -6,7 +6,7 @@ # COMMAND ---------- # DBTITLE 1,Extra Libs to install -%pip install pypdf ctransformers unstructured["local-inference"] sqlalchemy 'git+https://github.com/facebookresearch/detectron2.git' poppler-utils scrapy llama_index==0.8.9 opencv-python chromadb==0.4.9 +%pip install pypdf ctransformers unstructured["local-inference"] sqlalchemy 'git+https://github.com/facebookresearch/detectron2.git' poppler-utils scrapy llama_index==0.8.9 langchain==0.0.284 opencv-python chromadb==0.4.9 # COMMAND ----------