RAG

44 pieces on RAG, including 25 step-by-step guides.

Guides

guides
architect • 2026-11-09
RAGElasticsearchLangChainmulti-query retrievalOpenAIvector search

Build a Multi-Query RAG Retriever with Elasticsearch and LangChain

Reproduce Elasticsearch Labs' multi-query RAG pipeline: paraphrase user queries, retrieve against Elasticsearch, and feed combined context to an LLM.

Read more →
guides
architect • 2026-10-25
LangGraphRAGOllamaChromaTavilyMistral

Build LangGraph Adaptive RAG Locally with Ollama and Chroma

Run LangGraph's adaptive RAG notebook locally with Ollama Mistral, Nomic embeddings, Chroma, and Tavily web fallback, including routing, grading, and correction loops.

Read more →
guides
architect • 2026-10-24
RAGQdrantRagasOpenRouterLLM evaluationBioASQ

Evaluate a Qdrant RAG Pipeline with Ragas and OpenRouter

Build a per-question RAG evaluation loop with Qdrant, FastEmbed, OpenRouter, and Ragas to separate retrieval failures from generation failures.

Read more →
guides
architect • 2026-10-23
HaystackRAGSentenceWindowRetrieverBM25DocumentSplittertutorial

Build a sentence-window RAG retriever with Haystack

Index sentence-level Haystack documents, retrieve a BM25 match, and expand it into neighboring context with SentenceWindowRetriever.

Read more →
Build a Hybrid Sparse-Dense RAG Search Pipeline in Milvus
guides
Shan • 2026-10-08
MilvusRAGhybrid searchBGE-M3vector databasesparse vectors

Build a Hybrid Sparse-Dense RAG Search Pipeline in Milvus

Configure Milvus with BGE-M3 dense and sparse embeddings, dual indices, and Reciprocal Rank Fusion for resilient lexical and semantic retrieval.

Read more →
Generate Synthetic RAG Test Sets With Ragas
guides
Shan • 2026-10-04
RagasRAGEvaluationPythonLangChain

Generate Synthetic RAG Test Sets With Ragas

Build, save and reuse a Ragas knowledge graph to generate single-hop and multi-hop evaluation queries from Markdown documents.

Read more →
Build an Agentic RAG System with smolagents and ChromaDB
guides
Shan • 2026-09-29
smolagentsRAGChromaDBLangChainagents

Build an Agentic RAG System with smolagents and ChromaDB

Use smolagents CodeAgent to run multi-step retrieval over a ChromaDB vector store, letting the agent plan its own search strategy.

Read more →
Build a Routed RAG Chatbot with LlamaIndex and Chainlit
guides
Shan • 2026-09-24
RAGLlamaIndexChainlitNVIDIA NIMPython

Build a Routed RAG Chatbot with LlamaIndex and Chainlit

Dispatch queries across independent retrieval pipelines using LlamaIndex QueryFlow, Chainlit, and NVIDIA NIM endpoints.

Read more →
Graph RAG with Neo4j and OpenAI: Build a Product Search Pipeline
guides
Shan • 2026-09-14
neo4jraglangchainopenaiknowledge-graphvector-search

Graph RAG with Neo4j and OpenAI: Build a Product Search Pipeline

Combine Neo4j property graphs, GPT-4o entity extraction, and cosine similarity to build a multi-strategy product retrieval pipeline.

Read more →
Build a Self-Correcting RAG Agent with LangGraph and Milvus
guides
Shan • 2026-08-27
LangGraphRAGMilvusOllamaLangChain

Build a Self-Correcting RAG Agent with LangGraph and Milvus

Wire adaptive routing, corrective RAG, and self-RAG into a stateful LangGraph agent backed by Milvus Lite — no OpenAI key required.

Read more →
Hybrid Search with RRF in Elasticsearch: A Complete Guide
guides
Shan • 2026-08-26
elasticsearchhybrid-searchRAGvector-searchreciprocal-rank-fusion

Hybrid Search with RRF in Elasticsearch: A Complete Guide

Combine BM25 and kNN vector search using Reciprocal Rank Fusion in Elasticsearch to build a production-ready RAG retriever in Python.

Read more →
Build Persistent Agent Working Memory with MongoDB and Tavily
guides
Shan • 2026-08-25
MongoDBTavilyRAGvector-searchagent-memoryCohere

Build Persistent Agent Working Memory with MongoDB and Tavily

Store, retrieve, and grow agent memory across sessions using MongoDB Atlas Vector Search and Tavily hybrid RAG with save_foreign.

Read more →
Build a Multi-Modal RAG Pipeline with LlamaIndex and Qdrant
guides
Shan • 2026-08-14
RAGLlamaIndexQdrantGPT-4 VisionCLIPmulti-modal

Build a Multi-Modal RAG Pipeline with LlamaIndex and Qdrant

Index text and images into separate Qdrant stores, retrieve across both modalities, and answer queries with GPT-4 Vision using LlamaIndex.

Read more →
guides
architect • 2026-05-25T09:00:00Z
Local LLMsOllamallama.cppRAGDockerGGUFLLM Engineering

The Complete Developer Guide to Running LLMs Locally: From Ollama to Production

Everything you need to run LLMs on your own hardware in 2026: VRAM sizing, model formats, an 8-tool comparison table, a full local RAG pipeline, and Docker production deployment with GPU passthrough and Nginx auth.

Read more →
guides
Shan • 2026-05-24
DeepSeekOllamaReasoning ModelsLocal LLMsRAG

How to Run DeepSeek R1 Locally with Ollama: Full Setup Guide

Install DeepSeek R1 locally using Ollama in under 5 minutes. Covers model variant selection from 1.5B to 671B, visible chain-of-thought reasoning, REST API usage, Python integration, and building a simple RAG application.

Read more →
guides
AI Mastery Team • 2026-05-23
RAGEvaluationLLMsPython

Mastering Advanced RAG Evaluation: From Basic Metrics to LLM-as-a-Judge

Learn how to systematically evaluate Retrieval-Augmented Generation (RAG) pipelines using the RAG Triad, Ragas, and LLM-as-a-Judge techniques.

Read more →
guides
Shan • 2026-05-19
AI AgentsIntent DetectionRAGLangChainVector DatabasesPrompt Engineering

Beyond Prompt Engineering: Deep-Dive RAG for Intent Detection & Slot Filling in AI Agents

Stop relying on massive, static context prompts. Learn how to combine Retrieval-Augmented Generation (RAG), vector search (FAISS), and history compaction to achieve scalable intent detection and slot filling.

Read more →
Building a Production RAG Pipeline with Bedrock and OpenSearch Serverless
guides
Shan • 2026-05-14
AWSAmazon BedrockOpenSearch ServerlessRAGEnterprise AI

Building a Production RAG Pipeline with Bedrock and OpenSearch Serverless

Everyone has shipped a RAG demo. Shipping one that survives real traffic, security audits, and finance reviews requires a different architecture. Explore the enterprise-grade RAG stack on AWS.

Read more →
Secure RAG on Google Cloud with RAG Engine and Gemini (2026)
guides
Shan • 2026-05-14
Google CloudVertex AIRAG EngineGeminiSecurityRAG

Secure RAG on Google Cloud with RAG Engine and Gemini (2026)

Build RAG on Google Cloud with RAG Engine and Gemini, then lock it down: IAM-scoped corpora, VPC Service Controls, CMEK, and what is not supported.

Read more →
guides
Shan • 2026-05-14
LTRRAGMachine LearningSearchRe-ranking

Learning to Rank: The Hidden Layer Powering Modern RAG

Your RAG pipeline is only as good as your ranker. Explore the technical depths of Learning to Rank (LTR), from LambdaMART's 'Physics Trick' to the Cross-Encoder tradeoff that determines production success.

Read more →
guides
Shan • 2026-05-14
ArchitectureRAGProductionHybrid SearchQdrant

Designing a Production-Grade RAG Architecture

Large Language Models are powerful—but infamously unreliable when forced to guess. Learn how to build a production-grade RAG architecture that eliminates hallucinations through hybrid search, reranking, and structured ingestion.

Read more →
RAG vs MCP in 2026: What Each Solves and How They Fit Together
guides
Shan • 2026-05-14
RAGMCPModel Context ProtocolAI AgentsPythonArchitecture

RAG vs MCP in 2026: What Each Solves and How They Fit Together

RAG is a technique for grounding answers in your data; MCP is a protocol for connecting models to tools and data. Build an MCP server and see where RAG fits.

Read more →
How to Build a Time-Series RAG for Forecasting Data
guides
Shan • 2026-05-12
RAGTime-SeriesForecastingLangGraphData Science

How to Build a Time-Series RAG for Forecasting Data

Standard RAG is for text; Time-Series RAG is for numbers. Learn how to combine LLMs with historical patterns, statistical insights, and LangGraph to build more accurate forecasting systems.

Read more →
Build Multi-Tenant RAG with Pinecone and Next.js (2026)
guides
Shan • 2026-04-12
PineconeRAGNext.jsVercel AI SDKMulti-TenantTypeScript

Build Multi-Tenant RAG with Pinecone and Next.js (2026)

Chat with your PDFs per workspace: chunk, embed and upsert into Pinecone namespaces, retrieve context, and stream answers from a Next.js app.

Read more →
Getting Started with LangChain in 2026: Build a RAG Agent and a RAG Chain
guides
Shan • 2026-04-05
LangChainRAGPythonAI AgentsOpenAIVector Search

Getting Started with LangChain in 2026: Build a RAG Agent and a RAG Chain

Build retrieval-augmented generation two ways with LangChain 1.x: an agent that calls a retrieval tool, and a chain that injects context every time.

Read more →

News & Analysis

Long Context or Retrieval? Compare Cost, Quality and Update Work
articles
architect • 2026-10-14
1M contextRAGtoken pricingpplx-embed-v2-lateHaiku 5.5retrieval

Long Context or Retrieval? Compare Cost, Quality and Update Work

A worked long-context versus retrieval comparison that includes indexing, repeated queries, cache behavior and answer quality.

Read more →
news
Shan • 2026-10-01
Retrieval Augmented GenerationEmbeddingsOpen WeightsPerplexityBenchmarks

Perplexity's 9B Contextual Embedder Beats voyage-context-4 by 14.4 Points

Perplexity releases pplx-embed-v2-context-9b-preview, an open-weights 9B RAG embedder that scores 45.5% Answer Recall@10 and cuts storage 8× vs float32.

Read more →
Diagnosing Production AI Failures: Errors, Evidence and Side Effects
articles
architect • 2026-09-09
AI AgentsSystems ArchitectureRAGMulti-Agent SystemsProduction AI

Diagnosing Production AI Failures: Errors, Evidence and Side Effects

Separate service errors, wrong answers and incorrect actions. A source review corrects misquoted Datadog statistics and overclaims about RAG fixes.

Read more →
news
Shan • 2026-09-07
Amazon BedrockAmazon TextractRAGDocument ProcessingAWS

AWS Shows Document Preprocessing Before a Bedrock Knowledge Base

AWS describes a document-preprocessing workflow for Bedrock. Verify the actual parser path, supported file formats and answer quality.

Read more →
news
Shan • 2026-09-03
CohereDocument AIVision Language ModelOCRRAGOpen Weights

Cohere Parse 5: 2.3B-Parameter VLM Beats Gemini 3 Flash on ParseBench

Cohere's Parse 5 scores 79.2 on ParseBench, outperforming Mistral OCR and Gemini 3 Flash with a 2.3B-parameter VLM that outputs Markdown plus bounding boxes.

Read more →
news
Shan • 2026-09-01
BenchmarksSearch AgentsOpen SourceRAGEvaluation

NEEDLE Benchmark Rebuilds Search Queries Every Hour to Block Label Leakage

Keenable AI's MIT-licensed NEEDLE benchmark regenerates web search queries from live public sources, eliminating the fixed answer keys agents can fetch or memorize.

Read more →
news
Shan • 2026-08-30
CloudflareAI AgentsRAGSearch InfrastructureCloud

Cloudflare AI Search Bundles Full RAG Pipeline in One CLI Command

Cloudflare AI Search wraps crawling, embedding, vector storage, and ranking into one managed service with a single wrangler command and free beta access.

Read more →
news
Shan • 2026-08-29
RAGNLPDocument IntelligenceLarge Language ModelsPipeline Architecture

Six Cheaper Rungs Under RAG: When Not to Reach for the LLM

Kezhan Shi maps six deterministic methods that settle most enterprise document requests faster and cheaper than an LLM call—with a full audit trail.

Read more →
news
Shan • 2026-08-27
Sentence TransformersRetrievalEmbeddingsFine-TuningRAG

Sentence Transformers v6.0 Adds ColBERT Training in 14.5 Hours on One GPU

Sentence Transformers v6.0 adds MultiVectorEncoder with full ColBERT-style training. A single RTX 3090 run beats every zero-shot retriever by 0.06 NDCG@10.

Read more →
news
Shan • 2026-08-22
RAGRetrievalLLM ApplicationsChunkingPipeline Architecture

Row-Level RAG Chunks Cut Table Context by 7.7x

Serialising each table row as its own chunk returns 122 chars instead of 943 on a targeted lookup — a 7.7x context reduction with no parser changes.

Read more →
news
Shan • 2026-08-21
Amazon BedrockRAGCost OptimisationLLM InferenceAWS Lambda

AWS Reports RAG Compression Savings With a Latency Trade-Off

AWS's 500-query evaluation reports 33% cost savings from compression, alongside 19% slower latency and composite quality at 97.5% of baseline.

Read more →
news
Shan • 2026-08-20
Amazon BedrockMulti-Agent SystemsRAGCustomer Support AIAWS

FBG Reports Support Improvements From a Multi-Agent System

FBG reports internal containment and resolution improvements. Its AWS case study describes specialist tools, escalation and jurisdiction-specific retrieval.

Read more →
news
Shan • 2026-08-19
Large Language ModelsRAGKimi K3BenchmarksInference Cost

Kimi K3's 1M-Token Window Costs 16× More Than RAG on 12 Questions

A controlled 12-question blind trial pits Kimi K3's full 127K-token prompt against a tuned RAG pipeline. Long-context wins on completeness, loses on cost and latency.

Read more →
LLM Judge Bias Workshop: Source Verification Pending
news
Shan • 2026-08-13
LLMsEvaluationLLMOpsRAGOpen Weights

LLM Judge Bias Workshop: Source Verification Pending

We have not located the original workshop evidence for the attributed quotation and numerical bias claims below. This report remains unverified.

Read more →
news
Shan • 2026-08-12
LLMsEvaluationBiasRAGLLMOps

LLM Judge Workshop Report: Source Verification Pending

We have not located the workshop recording or paper that substantiates the attributed quotation, nine-bias taxonomy and numerical results below. Related resea

Read more →
news
Shan • 2026-06-11
AI AgentsOpen SourceRAGSearchBenchmarks

Harness-1 Shows Smaller Open Models Can Beat Frontier AI at Search

Harness-1 is a 20B open-source search agent that beats GPT-5.4 on recall by moving search memory out of the model and into a structured environment.

Read more →
Article
architect • 2026-05-25T09:00:00Z
AgentsRAGInformation RetrievalAI ResearchAgentic AI

Why AI Agents Need a Terminal, Not Just a Vector Database

Researchers propose Direct Corpus Interaction (DCI) — a technique that gives AI agents raw bash-like terminal access to search corpora, outperforming dense retrievers by over 30 points on multi-hop QA while cutting costs by 29%.

Read more →
Article
architect • 2026-04-13T10:00:00Z
Vector DatabasesRAGEnterprise AIEmbeddings

Vector Search for Enterprise AI: Dedicated Databases and SQL Options

How embeddings and similarity search support retrieval, including dedicated vector stores and PostgreSQL with pgvector.

Read more →
articles
Shan • 2026-04-11
RAGFine TuningEnterprise

The Economics of RAG vs. Fine-Tuning in Enterprise AI

Compare retrieval and fine-tuning by workload, refresh needs, evaluation effort and operating cost, without assuming either approach guarantees accuracy.

Read more →