Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ubi integration
Browse files
semantic_search/all_search_execute.py
CHANGED
|
@@ -520,12 +520,13 @@ def handler(input_,session_id):
|
|
| 520 |
########### ubi lambda call for query logging ###########
|
| 521 |
st.session_state["query_id"] = str(uuid.uuid4())
|
| 522 |
query_payload = {
|
| 523 |
-
"
|
| 524 |
"query_id": st.session_state["query_id"],
|
| 525 |
"application": "Semantic Search",
|
| 526 |
"query_response_hit_ids": doc_ids,
|
| 527 |
"timestamp": datetime.utcnow().isoformat() + "Z",
|
| 528 |
"user_query": json.dumps(hybrid_payload),
|
|
|
|
| 529 |
|
| 530 |
}
|
| 531 |
|
|
|
|
| 520 |
########### ubi lambda call for query logging ###########
|
| 521 |
st.session_state["query_id"] = str(uuid.uuid4())
|
| 522 |
query_payload = {
|
| 523 |
+
"client_id": session_id,
|
| 524 |
"query_id": st.session_state["query_id"],
|
| 525 |
"application": "Semantic Search",
|
| 526 |
"query_response_hit_ids": doc_ids,
|
| 527 |
"timestamp": datetime.utcnow().isoformat() + "Z",
|
| 528 |
"user_query": json.dumps(hybrid_payload),
|
| 529 |
+
"query": query,
|
| 530 |
|
| 531 |
}
|
| 532 |
|