Update app.py
Browse files
app.py
CHANGED
|
@@ -109,10 +109,16 @@ with st.container():
|
|
| 109 |
response_time = end_time - start_time
|
| 110 |
|
| 111 |
# metrics logging
|
|
|
|
| 112 |
st.session_state.metrics.record_query(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
routed_correctly=routed_correctly,
|
| 114 |
response_time=response_time
|
| 115 |
-
|
|
|
|
| 116 |
|
| 117 |
# structured routing log
|
| 118 |
print(
|
|
|
|
| 109 |
response_time = end_time - start_time
|
| 110 |
|
| 111 |
# metrics logging
|
| 112 |
+
|
| 113 |
st.session_state.metrics.record_query(
|
| 114 |
+
query=user_query,
|
| 115 |
+
model=selected_model,
|
| 116 |
+
use_rag=rag_toggle,
|
| 117 |
+
tool_name=tool_used,
|
| 118 |
routed_correctly=routed_correctly,
|
| 119 |
response_time=response_time
|
| 120 |
+
)
|
| 121 |
+
|
| 122 |
|
| 123 |
# structured routing log
|
| 124 |
print(
|