Spaces:
Sleeping
Sleeping
Update rag_retrieval.py
Browse files- rag_retrieval.py +3 -1
rag_retrieval.py
CHANGED
|
@@ -275,4 +275,6 @@ def log_trace(session_id: str, user_text: str, rewrite: str, retrieved, answer,
|
|
| 275 |
}
|
| 276 |
|
| 277 |
with trace_path.open("a", encoding="utf-8") as f:
|
| 278 |
-
f.write(json.dumps(record) + "\n")
|
|
|
|
|
|
|
|
|
| 275 |
}
|
| 276 |
|
| 277 |
with trace_path.open("a", encoding="utf-8") as f:
|
| 278 |
+
f.write(json.dumps(record) + "\n")
|
| 279 |
+
|
| 280 |
+
return record["trace_id"]
|