hadxu commited on
Commit
f9d6df4
1 Parent(s): 16baee3

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def question_answer(chat_history, question):
36
  response = requests.post(API_URL, headers=headers, json=payload)
37
  e = response.json()
38
 
39
- search_result = client.search(
40
  collection_name="test_collection", query_vector=e, limit=20
41
  )
42
  txt = '\n'.join([r.payload['text'] for r in search_result])
 
36
  response = requests.post(API_URL, headers=headers, json=payload)
37
  e = response.json()
38
 
39
+ search_result = qclient.search(
40
  collection_name="test_collection", query_vector=e, limit=20
41
  )
42
  txt = '\n'.join([r.payload['text'] for r in search_result])