make this query to querly_library tool : {'sql': "SELECT book_title, section_heading, '/textbooks/' || block_file_path AS file_path,\n line_start, line_end,\n snippet(paragraphs_fts, 0, '>>>', '<<<', '...', 30) as snippet\n FROM paragraphs_fts WHERE paragraphs_fts MATCH 'diabetes' ORDER BY rank LIMIT 10"}
MATCH 'diabetes' — Top 10 Paragraphs| # | Section Heading | File Path | Lines | Snippet |
|---|---|---|---|---|
| 1 | Hypothalamic anorexia, 1481 | block29.md | 22002 | ...immunocompromised pregnant women with HIV and cancer and AIDS and diabetes and cancer... |
| 2 | Hypothalamic anorexia, 1481 | block29.md | 21998–22001 | ...immunocompromised pregnant women with HIV and cancer and AIDS and diabetes... |
| 3 | (index/no heading) | block28.md | 127–168 | diabetes mellitus, 1536 (repeated index entries) |
| 4 | (index/no heading) | block28.md | 169–210 | diabetes mellitus, 1536 (repeated index entries) |
| 5 | (index/no heading) | block28.md | 211–252 | diabetes mellitus, 1536 (repeated index entries) |
| 6 | (index/no heading) | block28.md | 253–294 | diabetes mellitus, 1536 (repeated index entries) |
| 7 | (index/no heading) | block28.md | 295–336 | diabetes mellitus, 1536 (repeated index entries) |
| 8–10 | (index/no heading) | block28.md | 337–378+ | diabetes mellitus, 1536 (repeated index entries) |
block28.md), where "diabetes mellitus, 1536" appears hundreds of times — this is why they dominate by rank (high term frequency)."diabetes mellitus" as a phrase, add AND filters (e.g., 'diabetes AND treatment'), or exclude index blocks by filtering on section_heading IS NOT NULL or specific block_file_path patterns.