validate_literal_quote
Verify exact text matches in documents to prevent AI hallucination. Validates quoted strings exist precisely in source materials, returning confidence levels for matches.
Instructions
Verify that a quoted string exists EXACTLY in a segment or document.
Use BEFORE claiming any text appears in the source. Returns confidence: "textual" (exact match), "partial" (similar), "not_found". Prevents pattern completion hallucination.
Args: quote: The exact quote to validate. document_id: Optional: document to search. segment_id: Optional: specific segment to check. fuzzy_threshold: Similarity threshold for partial matches (0-1).
Returns: Literal quote validation result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | Yes | ||
| document_id | No | ||
| segment_id | No | ||
| fuzzy_threshold | No |