Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
search pipeline updated
Browse files
RAG/rag_DocumentSearcher.py
CHANGED
|
@@ -202,6 +202,7 @@ def query_(awsauth,inputs, session_id,search_types):
|
|
| 202 |
hybrid_payload["query"] = single_query
|
| 203 |
r = requests.get(url, auth=awsauth, json=hybrid_payload, headers=headers)
|
| 204 |
response_ = json.loads(r.text)
|
|
|
|
| 205 |
hits = response_['hits']['hits']
|
| 206 |
|
| 207 |
else:
|
|
|
|
| 202 |
hybrid_payload["query"] = single_query
|
| 203 |
r = requests.get(url, auth=awsauth, json=hybrid_payload, headers=headers)
|
| 204 |
response_ = json.loads(r.text)
|
| 205 |
+
print(response_)
|
| 206 |
hits = response_['hits']['hits']
|
| 207 |
|
| 208 |
else:
|