Solshine commited on
Commit
392455e
·
verified ·
1 Parent(s): 171f0bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(query_text=query, n_results=5) # Adjust n_results as needed
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(