mehmet0001 commited on
Commit
8c6685a
·
verified ·
1 Parent(s): 8fe87ce

Update create_database.py

Browse files
Files changed (1) hide show
  1. create_database.py +1 -0
create_database.py CHANGED
@@ -19,6 +19,7 @@ def create_database(txt):
19
  chromadb.api.client.SharedSystemClient.clear_system_cache()
20
 
21
  chroma_cli = chromadb.Client()
 
22
  collection = chroma_cli.create_collection("chat-with-docs",embedding_function=embedding_fn)
23
 
24
  txt = split_list(txt,5000)
 
19
  chromadb.api.client.SharedSystemClient.clear_system_cache()
20
 
21
  chroma_cli = chromadb.Client()
22
+ client.delete_collection(name="chat-with-docs")
23
  collection = chroma_cli.create_collection("chat-with-docs",embedding_function=embedding_fn)
24
 
25
  txt = split_list(txt,5000)