wylum commited on
Commit
22cfc62
·
verified ·
1 Parent(s): 7784bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -40,7 +40,7 @@ from langchain_openai import OpenAIEmbeddings
40
  from langchain_community.vectorstores import Chroma
41
  import chromadb
42
  #to handle the tenant issue
43
- #chromadb.api.client.SharedSystemClient.clear_system_cache()
44
 
45
  from langchain.chains import ConversationalRetrievalChain
46
  from langchain_openai import ChatOpenAI
@@ -231,7 +231,8 @@ def build_qa_chain(collection_name, vector_db, file: str):
231
  embeddings = HuggingFaceEmbeddings()
232
  """
233
 
234
- #vincent added to handle the tenant problem
 
235
  new_client = chromadb.EphemeralClient()
236
  memory = ConversationBufferMemory(
237
  memory_key="chat_history",
 
40
  from langchain_community.vectorstores import Chroma
41
  import chromadb
42
  #to handle the tenant issue
43
+ chromadb.api.client.SharedSystemClient.clear_system_cache()
44
 
45
  from langchain.chains import ConversationalRetrievalChain
46
  from langchain_openai import ChatOpenAI
 
231
  embeddings = HuggingFaceEmbeddings()
232
  """
233
 
234
+ #vincent added to handle the tenant problem 20250211
235
+ chromadb.api.client.SharedSystemClient.clear_system_cache()
236
  new_client = chromadb.EphemeralClient()
237
  memory = ConversationBufferMemory(
238
  memory_key="chat_history",