Spaces:
Sleeping
Sleeping
angelesteban00
commited on
Commit
•
d24775b
1
Parent(s):
65913cc
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from pymongo import MongoClient
|
2 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
3 |
-
from langchain.vectorstores import MongoDBAtlasVectorSearch
|
|
|
4 |
from langchain.document_loaders import DirectoryLoader
|
5 |
from langchain.llms import OpenAI
|
6 |
from langchain.chains import RetrievalQA
|
|
|
1 |
from pymongo import MongoClient
|
2 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
3 |
+
# error since Jan 2024, from langchain.vectorstores import MongoDBAtlasVectorSearch
|
4 |
+
from langchain_community.vectorstores import MongoDBAtlasVectorSearch
|
5 |
from langchain.document_loaders import DirectoryLoader
|
6 |
from langchain.llms import OpenAI
|
7 |
from langchain.chains import RetrievalQA
|