Tonic commited on
Commit
c47b0f3
1 Parent(s): d6b9a5a

chroma fix 4

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,8 +193,8 @@ def load_documents(file_path: str, mode: str = "elements"):
193
  return [doc.page_content for doc in docs]
194
 
195
  def initialize_chroma(collection_name: str, embedding_function: MyEmbeddingFunction):
196
- client = chromadb.HttpClient(host='localhost', port=8000, settings=Settings(allow_reset=True, anonymized_telemetry=False))
197
- client.reset() # resets the database
198
  collection = client.create_collection(collection_name)
199
  return client, collection
200
 
 
193
  return [doc.page_content for doc in docs]
194
 
195
  def initialize_chroma(collection_name: str, embedding_function: MyEmbeddingFunction):
196
+ client = chromadb.HttpClient(host='localhost', port=8000)
197
+ # client.reset() # resets the database
198
  collection = client.create_collection(collection_name)
199
  return client, collection
200