Spaces:
Sleeping
Sleeping
Asaad Almutareb
commited on
Commit
•
eeb00a0
1
Parent(s):
e88712c
updated langchain imports to langchain_community
Browse files- qa.py +4 -4
- requirements.txt +1 -1
qa.py
CHANGED
@@ -14,11 +14,11 @@ from botocore import UNSIGNED
|
|
14 |
from botocore.client import Config
|
15 |
|
16 |
# HF libraries
|
17 |
-
from
|
18 |
-
from
|
19 |
# vectorestore
|
20 |
-
from
|
21 |
-
from
|
22 |
import zipfile
|
23 |
|
24 |
# retrieval chain
|
|
|
14 |
from botocore.client import Config
|
15 |
|
16 |
# HF libraries
|
17 |
+
from langchain_community.llms import HuggingFaceHub
|
18 |
+
from langchain_community.embeddings import HuggingFaceHubEmbeddings
|
19 |
# vectorestore
|
20 |
+
from langchain_community.vectorstores import Chroma
|
21 |
+
from langchain_community.vectorstores import FAISS
|
22 |
import zipfile
|
23 |
|
24 |
# retrieval chain
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
huggingface_hub
|
2 |
chromadb
|
3 |
faiss-cpu
|
4 |
-
langchain
|
5 |
langchain-community
|
6 |
python-dotenv
|
7 |
bs4
|
|
|
1 |
huggingface_hub
|
2 |
chromadb
|
3 |
faiss-cpu
|
4 |
+
langchain
|
5 |
langchain-community
|
6 |
python-dotenv
|
7 |
bs4
|