path test
Browse files
app.py
CHANGED
@@ -24,10 +24,13 @@ from search import *
|
|
24 |
|
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):
|
32 |
return hashlib.sha256(content.encode('utf-8')).hexdigest()
|
33 |
|
|
|
24 |
|
25 |
|
26 |
# Chroma Connections
|
27 |
+
client = chromadb.PersistentClient(path = "/home/user/embeddings")
|
28 |
+
|
29 |
+
print(client.list_collections())
|
30 |
collection = client.get_or_create_collection(name="data",metadata={"hnsw:space": "l2"})
|
31 |
|
32 |
|
33 |
+
|
34 |
def generate_hash(content):
|
35 |
return hashlib.sha256(content.encode('utf-8')).hexdigest()
|
36 |
|