validate_output_vocabulary
Check if generated text uses only vocabulary present in the source document to detect imported terms and maintain content integrity.
Instructions
Check if output uses only vocabulary present in the source document.
Detects terms imported from outside the text.
Args: document_id: ID of the document. output: The output text to validate against document vocabulary.
Returns: Vocabulary validation result.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| output | Yes |