validate_proximity
Check if two document segments are adjacent within specified distance to enforce narrative continuity and prevent jump violations.
Instructions
Check if two segments are adjacent (within allowed distance).
Use to enforce "same verse or verse+1" constraints. Prevents narrative jump violations.
Args: base_segment_id: The anchor segment ID. target_segment_id: The segment ID being referenced. max_distance: Maximum allowed segment distance (0 = same, 1 = adjacent).
Returns: Proximity validation result.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_segment_id | Yes | ||
| target_segment_id | Yes | ||
| max_distance | No |