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"}

Finding Sources
Here are the results from the query:

Results for MATCH 'diabetes' — Top 10 Paragraphs

All 10 results are from Goldman-Cecil Medicine International Edition (2-volume set).
#Section HeadingFile PathLinesSnippet
1Hypothalamic anorexia, 1481block29.md22002...immunocompromised pregnant women with HIV and cancer and AIDS and diabetes and cancer...
2Hypothalamic anorexia, 1481block29.md21998–22001...immunocompromised pregnant women with HIV and cancer and AIDS and diabetes...
3(index/no heading)block28.md127–168diabetes mellitus, 1536 (repeated index entries)
4(index/no heading)block28.md169–210diabetes mellitus, 1536 (repeated index entries)
5(index/no heading)block28.md211–252diabetes mellitus, 1536 (repeated index entries)
6(index/no heading)block28.md253–294diabetes mellitus, 1536 (repeated index entries)
7(index/no heading)block28.md295–336diabetes mellitus, 1536 (repeated index entries)
8–10(index/no heading)block28.md337–378+diabetes mellitus, 1536 (repeated index entries)

Observations:
  • Most top results are from the book index (block28.md), where "diabetes mellitus, 1536" appears hundreds of times — this is why they dominate by rank (high term frequency).
  • For more clinically meaningful results, you'd want to refine the query — e.g., use "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.
This is a shared conversation. Sign in to Orris to start your own chat.