DrishtiSharma
commited on
Update patentwiz/qa_agent.py
Browse files- patentwiz/qa_agent.py +3 -0
patentwiz/qa_agent.py
CHANGED
@@ -17,6 +17,9 @@ from langchain.llms import OpenAI
|
|
17 |
from langchain.vectorstores import FAISS
|
18 |
from langchain.text_splitter import CharacterTextSplitter
|
19 |
|
|
|
|
|
|
|
20 |
# Move variables and functions that don't need to be in the main function outside
|
21 |
nltk.download("punkt", quiet=True)
|
22 |
|
|
|
17 |
from langchain.vectorstores import FAISS
|
18 |
from langchain.text_splitter import CharacterTextSplitter
|
19 |
|
20 |
+
# Clear ChromaDB cache to fix tenant issue
|
21 |
+
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
22 |
+
|
23 |
# Move variables and functions that don't need to be in the main function outside
|
24 |
nltk.download("punkt", quiet=True)
|
25 |
|