expand_context
Retrieve adjacent chunks before and after a specified chunk within the same document to restore continuity when a referenced snippet appears cut off.
Instructions
Fetches the chunks immediately before and after a given result within the same document, for continuity. Use this when get_context's answer references a chunk that seems to be cut off mid-thought.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| window | No | ||
| collection | Yes | ||
| chunk_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | Yes |