Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ collection = client_db.get_collection("my_collection")
|
|
15 |
inference_client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
16 |
|
17 |
def retrieve_from_chromadb(query):
|
18 |
-
results = collection.query(
|
19 |
return results['documents']
|
20 |
|
21 |
def respond(
|
|
|
15 |
inference_client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
16 |
|
17 |
def retrieve_from_chromadb(query):
|
18 |
+
results = collection.query(query_texts=query, n_results=5) # Adjust n_results as needed
|
19 |
return results['documents']
|
20 |
|
21 |
def respond(
|