Spaces:
Sleeping
Sleeping
Upload App.js
Browse files
App.js
CHANGED
|
@@ -415,19 +415,21 @@ function Message({ message }) {
|
|
| 415 |
background: "#f8f8f8",
|
| 416 |
border: "1px solid #ddd",
|
| 417 |
borderRadius: "6px",
|
| 418 |
-
fontSize: "0.9em"
|
|
|
|
| 419 |
}}>
|
| 420 |
-
<h4 style={{ marginTop: 0, marginBottom: "10px" }}>🔍 Prolog Query Analysis</h4>
|
| 421 |
|
| 422 |
{message.debug.llm_analysis && (
|
| 423 |
<div style={{ marginBottom: "15px" }}>
|
| 424 |
-
<strong>Generated Queries:</strong>
|
| 425 |
<pre style={{
|
| 426 |
background: "#fff",
|
| 427 |
padding: "8px",
|
| 428 |
borderRadius: "4px",
|
| 429 |
fontSize: "0.9em",
|
| 430 |
-
overflowX: "auto"
|
|
|
|
| 431 |
}}>
|
| 432 |
{message.debug.llm_analysis}
|
| 433 |
</pre>
|
|
@@ -436,8 +438,8 @@ function Message({ message }) {
|
|
| 436 |
|
| 437 |
{message.debug.predicates_queried && message.debug.predicates_queried.length > 0 && (
|
| 438 |
<div style={{ marginBottom: "15px" }}>
|
| 439 |
-
<strong>Predicates Queried:</strong>{" "}
|
| 440 |
-
<span style={{ color: "#0066cc" }}>
|
| 441 |
{message.debug.predicates_queried.join(", ")}
|
| 442 |
</span>
|
| 443 |
</div>
|
|
@@ -445,19 +447,20 @@ function Message({ message }) {
|
|
| 445 |
|
| 446 |
{message.debug.queries_executed && message.debug.queries_executed.length > 0 && (
|
| 447 |
<div style={{ marginBottom: "15px" }}>
|
| 448 |
-
<strong>Executed Queries ({message.debug.queries_executed.length}):</strong>
|
| 449 |
-
<ul style={{ marginTop: "5px", paddingLeft: "20px" }}>
|
| 450 |
{message.debug.queries_executed.map((q, idx) => (
|
| 451 |
<li key={idx} style={{ marginBottom: "5px" }}>
|
| 452 |
<code style={{
|
| 453 |
background: "#e8f4f8",
|
| 454 |
padding: "2px 6px",
|
| 455 |
borderRadius: "3px",
|
| 456 |
-
fontSize: "0.9em"
|
|
|
|
| 457 |
}}>
|
| 458 |
{q.query}
|
| 459 |
</code>{" "}
|
| 460 |
-
<span style={{ color: "#
|
| 461 |
→ {q.results_count} result{q.results_count !== 1 ? "s" : ""}
|
| 462 |
</span>
|
| 463 |
</li>
|
|
@@ -467,7 +470,7 @@ function Message({ message }) {
|
|
| 467 |
)}
|
| 468 |
|
| 469 |
<div>
|
| 470 |
-
<strong>Total Results:</strong>{" "}
|
| 471 |
<span style={{ color: "#00aa00", fontWeight: "bold" }}>
|
| 472 |
{message.debug.total_results || 0}
|
| 473 |
</span>
|
|
|
|
| 415 |
background: "#f8f8f8",
|
| 416 |
border: "1px solid #ddd",
|
| 417 |
borderRadius: "6px",
|
| 418 |
+
fontSize: "0.9em",
|
| 419 |
+
color: "#1a1a1a"
|
| 420 |
}}>
|
| 421 |
+
<h4 style={{ marginTop: 0, marginBottom: "10px", color: "#1a1a1a" }}>🔍 Prolog Query Analysis</h4>
|
| 422 |
|
| 423 |
{message.debug.llm_analysis && (
|
| 424 |
<div style={{ marginBottom: "15px" }}>
|
| 425 |
+
<strong style={{ color: "#1a1a1a" }}>Generated Queries:</strong>
|
| 426 |
<pre style={{
|
| 427 |
background: "#fff",
|
| 428 |
padding: "8px",
|
| 429 |
borderRadius: "4px",
|
| 430 |
fontSize: "0.9em",
|
| 431 |
+
overflowX: "auto",
|
| 432 |
+
color: "#1a1a1a"
|
| 433 |
}}>
|
| 434 |
{message.debug.llm_analysis}
|
| 435 |
</pre>
|
|
|
|
| 438 |
|
| 439 |
{message.debug.predicates_queried && message.debug.predicates_queried.length > 0 && (
|
| 440 |
<div style={{ marginBottom: "15px" }}>
|
| 441 |
+
<strong style={{ color: "#1a1a1a" }}>Predicates Queried:</strong>{" "}
|
| 442 |
+
<span style={{ color: "#0066cc", fontWeight: "500" }}>
|
| 443 |
{message.debug.predicates_queried.join(", ")}
|
| 444 |
</span>
|
| 445 |
</div>
|
|
|
|
| 447 |
|
| 448 |
{message.debug.queries_executed && message.debug.queries_executed.length > 0 && (
|
| 449 |
<div style={{ marginBottom: "15px" }}>
|
| 450 |
+
<strong style={{ color: "#1a1a1a" }}>Executed Queries ({message.debug.queries_executed.length}):</strong>
|
| 451 |
+
<ul style={{ marginTop: "5px", paddingLeft: "20px", color: "#1a1a1a" }}>
|
| 452 |
{message.debug.queries_executed.map((q, idx) => (
|
| 453 |
<li key={idx} style={{ marginBottom: "5px" }}>
|
| 454 |
<code style={{
|
| 455 |
background: "#e8f4f8",
|
| 456 |
padding: "2px 6px",
|
| 457 |
borderRadius: "3px",
|
| 458 |
+
fontSize: "0.9em",
|
| 459 |
+
color: "#1a1a1a"
|
| 460 |
}}>
|
| 461 |
{q.query}
|
| 462 |
</code>{" "}
|
| 463 |
+
<span style={{ color: "#333" }}>
|
| 464 |
→ {q.results_count} result{q.results_count !== 1 ? "s" : ""}
|
| 465 |
</span>
|
| 466 |
</li>
|
|
|
|
| 470 |
)}
|
| 471 |
|
| 472 |
<div>
|
| 473 |
+
<strong style={{ color: "#1a1a1a" }}>Total Results:</strong>{" "}
|
| 474 |
<span style={{ color: "#00aa00", fontWeight: "bold" }}>
|
| 475 |
{message.debug.total_results || 0}
|
| 476 |
</span>
|