fraudTech commited on
Commit
3ecec4b
·
1 Parent(s): 180727a

flexible mode claims with prolog

Browse files
Files changed (1) hide show
  1. src/App.js +18 -0
src/App.js CHANGED
@@ -523,6 +523,7 @@ function Message({ message }) {
523
  );
524
 
525
  const validation = (message.debug && message.debug.validation) || null;
 
526
 
527
  return (
528
  <div className={`message ${isUser ? "user" : "assistant"}`}>
@@ -585,6 +586,23 @@ function Message({ message }) {
585
  </div>
586
  )}
587
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
588
  {message.debug.llm_analysis && (
589
  <div style={{ marginBottom: "15px" }}>
590
  <strong style={{ color: "#1a1a1a" }}>Generated Queries:</strong>
 
523
  );
524
 
525
  const validation = (message.debug && message.debug.validation) || null;
526
+ const claimValidation = (message.debug && message.debug.claim_validation) || null;
527
 
528
  return (
529
  <div className={`message ${isUser ? "user" : "assistant"}`}>
 
586
  </div>
587
  )}
588
 
589
+ {claimValidation && (
590
+ <div style={{ marginBottom: "15px" }}>
591
+ <strong style={{ color: "#1a1a1a" }}>Claim Validation (Flexible Mode):</strong>
592
+ <pre style={{
593
+ background: "#fff",
594
+ padding: "8px",
595
+ borderRadius: "4px",
596
+ fontSize: "0.85em",
597
+ overflowX: "auto",
598
+ color: "#1a1a1a",
599
+ marginTop: "6px"
600
+ }}>
601
+ {JSON.stringify(claimValidation, null, 2)}
602
+ </pre>
603
+ </div>
604
+ )}
605
+
606
  {message.debug.llm_analysis && (
607
  <div style={{ marginBottom: "15px" }}>
608
  <strong style={{ color: "#1a1a1a" }}>Generated Queries:</strong>