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

Update create_database.py

Browse files
Files changed (1) hide show
  1. create_database.py +1 -1
create_database.py CHANGED
@@ -19,7 +19,7 @@ def create_database(txt):
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)
 
19
  chromadb.api.client.SharedSystemClient.clear_system_cache()
20
 
21
  chroma_cli = chromadb.Client()
22
+ chroma_cli.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)