RAG_Techniques

This repository showcases various advanced techniques for Retrieval-Augmented Generation (RAG) systems. RAG systems combine information retrieval with generative models to provide accurate and contextually rich responses.

18 articles 25.4k View on GitHub ↗
18 articles
RAG Helper Functions for PDF Loading: Automating Document Processing for LLM Pipelines

Automate PDF loading for LLM pipelines with RAG helper functions from NirDiamant/RAG_Techniques. Streamline chunking, embedding, and vector storage for efficient document processing.

how-to-guide
Feb 19, 2026
Agentic RAG Architecture and Implementation: A Complete Technical Guide

Learn agentic RAG architecture and implementation. This guide details how autonomous agents dynamically reformulate queries, orchestrate retrieval, and validate outputs.

architecture
Feb 19, 2026
How to Use RAPTOR for RAG: Implementing Hierarchical Tree-Based Retrieval

Learn how to use RAPTOR for RAG. Implement hierarchical tree-based retrieval for precise, context-aware answers. Explore this advanced RAG technique.

tutorial
Feb 19, 2026
Microsoft GraphRAG Implementation: Building Knowledge Graphs for Enhanced RAG

Implement Microsoft GraphRAG to build knowledge graphs from text. Enhance RAG with entity extraction and community detection for global answer synthesis. Explore the NirDiamant/RAG_Techniques repo.

tutorial
Feb 19, 2026
Implementing Graph RAG with LangChain: A Complete Technical Guide

Master Graph RAG with LangChain. This technical guide explains multi-hop reasoning using vector search and knowledge graphs, featuring the NirDiamant RAG Techniques repository.

how-to-guide
Feb 19, 2026
Using Groq Universal Sentence Encoder for RAG Evaluation: Implementation Guide

Learn how to evaluate RAG pipelines using Groq Universal Sentence Encoder with the GroqEmbeddings class and the evaluate_rag function. Implement RAG techniques now.

how-to-guide
Feb 19, 2026
Retrieval with Feedback Loops in RAG: Implementing Continuous Improvement in Vector Search

Enhance RAG retrieval quality with feedback loops. Learn how to implement continuous improvement in vector search by using user ratings and re-indexing for better results.

deep-dive
Feb 19, 2026
How to Implement Multi-Modal RAG: Two Production-Ready Architectures Explained

Learn how to implement multi-modal RAG by exploring two production-ready architectures. Understand combining text and visual data for enhanced document comprehension and retrieval.

architecture
Feb 19, 2026
Document Augmentation Strategies for RAG: Boost Retrieval with Synthetic Questions

Boost RAG retrieval with document augmentation. Generate synthetic questions for each text chunk to improve query-to-context alignment. Discover efficient RAG techniques today.

deep-dive
Feb 19, 2026
How to Use Contextual Compression in RAG: A Complete Implementation Guide

Master Contextual Compression in RAG with our implementation guide. Filter irrelevant text using an LLM compressor to enhance RAG performance and reduce token usage for better results.

how-to-guide
Feb 19, 2026
Implementing Semantic Chunking for RAG: A Complete Guide to Meaning-Based Document Splitting

Learn semantic chunking for RAG to split documents by meaning. Enhance retrieval relevance in your RAG pipelines with this essential guide.

how-to-guide
Feb 19, 2026
Context Window Enhancement in RAG: Techniques for Improving Retrieval Context

Enhance RAG context window with neighboring segments for better narrative flow and answer coherence. Discover techniques implemented in NirDiamant/RAG_Techniques.

deep-dive
Feb 19, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →