Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ import uuid # For generating unique filenames
|
|
| 30 |
#from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 31 |
#*from langchain.docstore.document import Document
|
| 32 |
#from langchain_core.documents import Document
|
| 33 |
-
|
| 34 |
|
| 35 |
|
| 36 |
# NEW IMPORTS (current):
|
|
@@ -40,7 +40,7 @@ from langchain_core.documents import Document
|
|
| 40 |
from langchain_community.document_loaders import TextLoader, PyPDFLoader
|
| 41 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 42 |
from langchain_community.llms import HuggingFaceHub
|
| 43 |
-
from
|
| 44 |
from langchain_community.vectorstores import Chroma #from old library
|
| 45 |
from langchain_groq import ChatGroq
|
| 46 |
|
|
|
|
| 30 |
#from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 31 |
#*from langchain.docstore.document import Document
|
| 32 |
#from langchain_core.documents import Document
|
| 33 |
+
#from langchain.chains import RetrievalQA # This one might still be in main langchain
|
| 34 |
|
| 35 |
|
| 36 |
# NEW IMPORTS (current):
|
|
|
|
| 40 |
from langchain_community.document_loaders import TextLoader, PyPDFLoader
|
| 41 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 42 |
from langchain_community.llms import HuggingFaceHub
|
| 43 |
+
from langchain_community.chains import RetrievalQA
|
| 44 |
from langchain_community.vectorstores import Chroma #from old library
|
| 45 |
from langchain_groq import ChatGroq
|
| 46 |
|