That1BrainCell commited on
Commit
41f609d
·
verified ·
1 Parent(s): bb238ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ from search import *
25
 
26
  # Chroma Connections
27
  client = chromadb.PersistentClient(path = "embeddings")
28
- collection = client.get_collection(name="data")
29
 
30
 
31
  def generate_hash(content):
 
25
 
26
  # Chroma Connections
27
  client = chromadb.PersistentClient(path = "embeddings")
28
+ collection = client.get_or_create_collection(name="data",metadata={"hnsw:space": "l2"})
29
 
30
 
31
  def generate_hash(content):