Basic RAG works for simple queries. Complex questions need multi-hop reasoning or structured data. This page covers GraphRAG, iterative RAG, agentic RAG, and hybrid data patterns.Documentation Index
Fetch the complete documentation index at: https://aitutorial.dev/llms.txt
Use this file to discover all available pages before exploring further.
Pattern 1: GraphRAG (Knowledge Graphs + RAG)
Problem: Simple RAG struggles with multi-hop reasoning. Example query: “Which employees who worked on Project X are now working on Project Y?”- Requires connecting: Employee → Project X → Employee → Project Y
- Basic RAG might find docs about each project separately but miss the connection
- Multi-hop reasoning required
- Entity-centric queries (people, companies, products)
- Relationship-heavy domains (org charts, supply chains)
Pattern 2: Iterative RAG (Query Refinement)
Problem: User queries are often vague or poorly formed. Example: User asks “Tell me about the outage”- Which outage? (Multiple incidents in database)
- What aspect? (Cause, impact, resolution, timeline)
- Vague user queries common
- Large document corpus (many potential matches)
- Quality > speed (each iteration adds 200-500ms)
Pattern 3: Agentic RAG (LLM-Driven Retrieval)
Problem: Users don’t know the right keywords or structure. Solution: Let the LLM decide HOW to search based on the question. When to use:- Complex, varied query types
- Large metadata taxonomy (many filter options)
- Power users who ask sophisticated questions
Pattern 4: Hybrid RAG (Structured + Unstructured)
Problem: Some questions need data from both databases AND documents. Example: “What’s our Q4 revenue compared to industry analysis reports?”- Revenue: Structured data (database query)
- Industry analysis: Unstructured data (document retrieval)
- Mixed data sources (databases + documents)
- Business intelligence + qualitative analysis
- Compliance (regulations + internal policies)