Spaces:
Sleeping
Sleeping
Mikeplockhart
commited on
Commit
•
7967a92
1
Parent(s):
afc3612
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ collection.add(
|
|
43 |
ids=[f"id_{idx}" for idx, _ in enumerate(payload)]
|
44 |
)
|
45 |
|
46 |
-
def search_chroma(
|
47 |
results = collection.query(
|
48 |
query_embeddings=embedding_function([query]),
|
49 |
n_results=5
|
|
|
43 |
ids=[f"id_{idx}" for idx, _ in enumerate(payload)]
|
44 |
)
|
45 |
|
46 |
+
def search_chroma(query:str):
|
47 |
results = collection.query(
|
48 |
query_embeddings=embedding_function([query]),
|
49 |
n_results=5
|