Add application file
Browse files
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 =
|
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])
|