find_similar
Retrieve documents similar to a given document by analyzing semantic embeddings or TF-IDF similarity. Supports filtering by tags and specifying chunk-level or full document comparison.
Instructions
Find documents similar to a given document. Uses semantic embeddings if available, falls back to TF-IDF. Great for discovering related content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document ID to find similar documents for | |
| chunk_id | No | Optional chunk ID (if omitted, uses entire document) | |
| max_results | No | Maximum number of results (default: 5) | |
| tags | No | Filter by document tags (optional) |