Create Image on how you use library db and how does agent adapts and iterate on information it finds
A detailed technical diagram showing an AI agent's workflow for using a medical library database, with adaptive iteration cycles. The diagram shows: 1) A central AI Agent node with a brain/circuit icon, 2) An arrow pointing to a "Library Database" (represented as stacked books with a search bar), 3) The agent sending a query with keywords like "FTS5 Search", "Headings", "Paragraphs", 4) Results flowing back showing textbook blocks, section headings, and snippets, 5) A decision diamond labeled "Sufficient Info?" with two paths: YES leads to "Synthesize Answer" and NO loops back to "Refine Query" with adapted search terms, 6) Multiple iteration arrows showing the agent trying broader/narrower searches, 7) Side annotations showing adaptation strategies: "Broaden terms", "Try synonyms", "Search different sections", "Cross-reference books", 8) A final output box showing a well-cited medical answer. Use a clean, modern infographic style with blue and teal color scheme, clear labels, and professional flow chart arrows.

headings_fts (topic-level) and paragraphs_fts (deep content) searchesAND, OR) and phrase search ("exact phrase")