From 049f57d38e70f119146f8c0f9fadd68aa01910f9 Mon Sep 17 00:00:00 2001 From: sjbailey838 Date: Tue, 4 Jun 2024 14:00:01 -0600 Subject: [PATCH 1/2] updated requiredments.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index b290b554..db0bd5b2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ pypdf langchain +langchain_community chromadb # Vector storage pytest boto3 From 4828e81fd5dbb093ac9da65f7dd59a214e9b4369 Mon Sep 17 00:00:00 2001 From: sjbailey838 Date: Tue, 4 Jun 2024 14:20:02 -0600 Subject: [PATCH 2/2] updated imports --- populate_database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/populate_database.py b/populate_database.py index 3d2a1ab8..41ab9eca 100644 --- a/populate_database.py +++ b/populate_database.py @@ -1,11 +1,11 @@ import argparse import os import shutil -from langchain.document_loaders.pdf import PyPDFDirectoryLoader +from langchain_community.document_loaders import PyPDFDirectoryLoader from langchain_text_splitters import RecursiveCharacterTextSplitter from langchain.schema.document import Document from get_embedding_function import get_embedding_function -from langchain.vectorstores.chroma import Chroma +from langchain_community.vectorstores import Chroma CHROMA_PATH = "chroma"