n4nAI

Topic

LlamaIndex Query Engines for RAG

15 posts on llamaindex query engines for rag — part of framework tutorials on the n4n AI blog.

Framework tutorialsHow-to

Tune top-k retrieval in LlamaIndex query engines

Learn how to tune top-k retrieval in LlamaIndex query engines with a step-by-step guide covering baseline measurement, reranking, hybrid search, and automated evaluation.

4 min read
Framework tutorialsGuide

Sub-question query engine in LlamaIndex explained

A practical guide to LlamaIndex's SubQuestionQueryEngine — when to use it, how it decomposes complex queries, and production patterns for multi-document RAG.

4 min read
Framework tutorialsHow-to

Stream RAG responses in LlamaIndex with n4n.ai

Learn to stream RAG responses in LlamaIndex using n4n.ai as the inference gateway with step-by-step code and verification.

4 min read
Framework tutorialsTutorial

Multi-document RAG with LlamaIndex RouterQueryEngine

Build a multi-document RAG system using LlamaIndex RouterQueryEngine with step-by-step code examples and expected outputs.

3 min read
Framework tutorialsComparison

LlamaIndex tree summarize vs refine response mode

Compare LlamaIndex tree_summarize vs refine response modes for RAG — latency, cost, quality trade-offs, and when to use each.

6 min read
Framework tutorialsComparison

LlamaIndex query pipelines vs query engines

Compare LlamaIndex query pipelines and query engines across capabilities, ergonomics, latency, and ecosystem to pick the right abstraction for your RAG system.

5 min read
Framework tutorialsTutorial

LlamaIndex SQL query engine for structured data

Build a production-ready LlamaIndex SQL query engine for structured data with step-by-step code, from schema setup to natural language queries.

3 min read
Framework tutorialsTutorial

LlamaIndex RouterQueryEngine for multi-source RAG

Build a production-ready multi-source RAG system using LlamaIndex RouterQueryEngine with step-by-step code and real output examples.

2 min read
Framework tutorialsComparison

LlamaIndex response modes: compact, refine, tree summarize

Compare LlamaIndex response modes — compact, refine, tree_summarize — across latency, cost, quality, and token limits with a decision guide for RAG query engines.

6 min read
Framework tutorialsTutorial

LlamaIndex query engine with Claude 3.5 Sonnet on n4n.ai

Build a production-ready RAG pipeline using LlamaIndex query engines with Claude 3.5 Sonnet via n4n.ai's OpenAI-compatible endpoint.

3 min read
Framework tutorialsTutorial

LlamaIndex CondenseQuestion engine for chat-based RAG

Build a chat-based RAG system using LlamaIndex's CondenseQuestion engine with step-by-step code and expected outputs.

3 min read
Framework tutorialsTutorial

Hybrid search query engine in LlamaIndex tutorial

Build a production-ready hybrid search query engine in LlamaIndex combining vector similarity and BM25 keyword search with runnable code and tuning guidance.

4 min read
Framework tutorialsGuide

LlamaIndex VectorStoreIndex query engine explained

A practical llamaindex vectorstoreindex query engine tutorial: build the index, configure models, tune retrieval, run RAG queries, and avoid common pitfalls.

3 min read
Framework tutorialsTutorial

Build a RAG query engine in LlamaIndex with n4n.ai

Step-by-step llamaindex rag query engine tutorial: install LlamaIndex, load docs, configure LLM via n4n.ai, build vector index, and run queries.

2 min read
Framework tutorialsTutorial

Build a citation-aware query engine in LlamaIndex

Hands-on llamaindex citation query engine tutorial: build a RAG pipeline with LlamaIndex that returns answers annotated with verifiable source citations.

2 min read