Spaces:
Sleeping
Sleeping
add verification (Flexible mode) in prolog debug
Browse files- src/App.js +25 -0
src/App.js
CHANGED
|
@@ -526,6 +526,10 @@ function Message({ message }) {
|
|
| 526 |
[message.text]
|
| 527 |
);
|
| 528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
return (
|
| 530 |
<div className={`message ${isUser ? "user" : "assistant"}`}>
|
| 531 |
<div className="bubble">
|
|
@@ -570,6 +574,27 @@ function Message({ message }) {
|
|
| 570 |
}}>
|
| 571 |
<h4 style={{ marginTop: 0, marginBottom: "10px", color: "#1a1a1a" }}>🔍 Prolog Query Analysis</h4>
|
| 572 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 573 |
{message.debug.llm_analysis && (
|
| 574 |
<div style={{ marginBottom: "15px" }}>
|
| 575 |
<strong style={{ color: "#1a1a1a" }}>Generated Queries:</strong>
|
|
|
|
| 526 |
[message.text]
|
| 527 |
);
|
| 528 |
|
| 529 |
+
const verification =
|
| 530 |
+
(message.debug && (message.debug.verification || message.debug.math_verification)) ||
|
| 531 |
+
null;
|
| 532 |
+
|
| 533 |
return (
|
| 534 |
<div className={`message ${isUser ? "user" : "assistant"}`}>
|
| 535 |
<div className="bubble">
|
|
|
|
| 574 |
}}>
|
| 575 |
<h4 style={{ marginTop: 0, marginBottom: "10px", color: "#1a1a1a" }}>🔍 Prolog Query Analysis</h4>
|
| 576 |
|
| 577 |
+
<div style={{ marginBottom: "15px" }}>
|
| 578 |
+
<strong style={{ color: "#1a1a1a" }}>Math Verification (Flexible Mode):</strong>
|
| 579 |
+
{verification ? (
|
| 580 |
+
<pre style={{
|
| 581 |
+
background: "#fff",
|
| 582 |
+
padding: "8px",
|
| 583 |
+
borderRadius: "4px",
|
| 584 |
+
fontSize: "0.85em",
|
| 585 |
+
overflowX: "auto",
|
| 586 |
+
color: "#1a1a1a",
|
| 587 |
+
marginTop: "6px"
|
| 588 |
+
}}>
|
| 589 |
+
{JSON.stringify(verification, null, 2)}
|
| 590 |
+
</pre>
|
| 591 |
+
) : (
|
| 592 |
+
<div style={{ marginTop: "6px", color: "#666" }}>
|
| 593 |
+
No verification data provided by backend.
|
| 594 |
+
</div>
|
| 595 |
+
)}
|
| 596 |
+
</div>
|
| 597 |
+
|
| 598 |
{message.debug.llm_analysis && (
|
| 599 |
<div style={{ marginBottom: "15px" }}>
|
| 600 |
<strong style={{ color: "#1a1a1a" }}>Generated Queries:</strong>
|