Find related passages
find_related_passagesFinds the quotes and notes in the reader's ReadingRate collection that are closest in meaning to one of their saved quotes or notes, across all their books, with each passage's book, author, page and a similarity score from 0 to 1.
Use when the reader asks what else they have saved that connects to a particular quote or note, or for related passages in their collection. Get the id from list_saved_quotes (a quote) or get_reading_notes (a note).
Examples:
{"id": "", "type": "quote"}
{"id": "", "limit": 10, "threshold": 0.35}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the quote or note to start from | |
| type | No | What the id is: "quote" for a saved quote, "marginalia" for a note (default "marginalia") | |
| limit | No | Maximum number of related passages (default 5, max 20) | |
| threshold | No | Lowest similarity to include, 0 to 1 (default 0.42) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Human-readable note when the entry cannot be compared yet | |
| source_id | No | Id of the quote or note searched from | |
| connections | No | The reader's own quotes and notes closest in meaning, closest first | |
| source_type | No | quote or marginalia (a note) | |
| connections_count | No | Number of related passages found |