AI Compare
​
​
ToolsArticlesServices
Best for
    All tools

    Sales

    AI tools for finding leads, qualifying them, preparing quotes, following up and keeping the CRM up to date.

    Marketing

    AI tools for content, social media, images, video, SEO and campaigns.

    Customer service

    AI tools for answering customer emails, chats and calls, handling requests and escalating the hard cases.

    Operations

    AI tools for running the daily work: workflows, scheduling, projects, purchasing and delivery.

    Finance

    AI tools for invoices, bookkeeping, reconciliation, spreadsheets and financial reporting.

    Management & Admin

    AI tools for owners, managers and office staff: planning, reports, documents, meetings, scheduling and everyday admin.

    HR

    AI tools for hiring, screening candidates, onboarding, training and answering employee questions.

    Legal & Compliance

    AI tools for reviewing contracts, tracking deadlines and preparing compliance work for a qualified person to check.

    IT & Development

    AI tools for developers and IT teams: coding, AI models, agents, infrastructure and integrations.

Find AI tools for your team
AllAssistantsWriting & DocsImagesVideoAudioAI AgentsAutomationCode
← Back to tools

β€’

2025-06-05

all-in-rag logo

all-in-rag

Not rated yet

9.8K GitHub stars

Type:

Tool

Platforms:

Github

Task:

Chat with AIConnect AI to appsManage AI models

Best for:

IT & Development
Visit websiteView on GitHub

Pricing


Starting price

$0

Type

Freemium

Overview

all-in-rag is a full-stack practical guide to developing large-model applications with Retrieval-Augmented Generation (RAG). Contributors with experience in RAG, vector databases, Agentic RAG, or related technologies are invited to submit independent chapters to the Extra Chapter section after reviewing the contribution and PR guidelines.

The README covers RAG fundamentals and use cases; the complete data-processing workflow from loading and cleaning to chunking; embeddings, multimodal embeddings, vector databases, and index optimization; and advanced retrieval techniques such as hybrid retrieval, query construction, and Text2SQL.

README

All-in-RAG | Practical Large Language Model Application Development I: A Full-Stack Guide to RAG Technology

All-in-RAG Logo

πŸ” Full-Stack Guide to Retrieval-Augmented Generation (RAG)

From theory to practice, from fundamentals to advanced topics β€” build a complete RAG technology stack

GitHub stars GitHub forks Python zread
Read Online English Version Discussion

🎯 Systematic Learning
A complete RAG technology stack
πŸ› οΈ Hands-on Practice
Rich project examples
πŸš€ Production Ready
Engineering best practices
πŸ“Š Multimodal Support
Text + image retrieval

Project Overview

This project is a full-stack RAG (Retrieval-Augmented Generation) tutorial for large language model application developers. Through a systematic learning path and hands-on projects, it aims to help developers master RAG application development with large language models and build production-grade intelligent question-answering and knowledge retrieval systems.

Main topics include:

  1. RAG Fundamentals: An accessible introduction to RAG's core concepts, technical principles, and use cases
  2. Complete Data Processing Workflow: The entire data preparation process, from data loading and cleaning to text chunking
  3. Index Construction and Optimization: Vector embeddings, multimodal embeddings, vector database construction, and index optimization
  4. Advanced Retrieval Techniques: Hybrid retrieval, query construction, Text2SQL, and other advanced retrieval techniques
  5. Generation Integration and Evaluation: Structured generation, system evaluation, and optimization methods
  6. Hands-on Projects: Complete RAG application development projects ranging from basic to advanced

Why This Project Matters

With the rapid development of large language models, RAG has become a core technology for building intelligent question-answering systems and knowledge retrieval applications. However, existing RAG tutorials are often fragmented and lack a systematic structure, making it difficult for beginners to develop a complete understanding of the technology.

Starting from practical applications and incorporating the latest developments in RAG technology, this project provides a complete RAG learning framework that helps developers:

  • Systematically master the theoretical foundations and practical skills of RAG
  • Understand the complete architecture of a RAG system and the role of each component
  • Develop RAG applications independently
  • Master methods for evaluating and optimizing RAG systems

Target Audience

This project is suitable for:

  • Developers with basic Python programming skills who are interested in RAG technology
  • AI engineers who want to learn RAG systematically
  • Product developers who want to build intelligent question-answering systems
  • Researchers interested in retrieval-augmented generation

Prerequisites:

  • Basic knowledge of Python syntax and commonly used libraries
  • Basic ability to use Docker
  • Familiarity with basic LLM concepts (recommended but not required)
  • Basic Linux command-line skills

Project Highlights

  1. Systematic Learning Path: Build a complete understanding of RAG technology, from fundamental concepts to advanced applications
  2. Theory and Practice Combined: Every chapter includes theoretical explanations and practical code examples to ensure effective learning
  3. Multimodal Support: Covers not only text-based RAG but also multimodal embedding and retrieval techniques
  4. Engineering-Oriented: Focuses on practical engineering challenges, including performance optimization and system evaluation
  5. Rich Hands-on Projects: Provides multiple projects ranging from basic to advanced to reinforce what you learn

Content Outline

Part 1: RAG Fundamentals

Chapter 1: Unlocking RAG πŸ“– View Chapter

  • Introduction to RAG - Overview of RAG technology and use cases
  • Preparation - Environment configuration and preparation
  • Build RAG in Four Steps - Get started quickly with RAG development
  • Appendix: Environment Deployment - Additional Python virtual environment deployment guide (Contributor: @anarchysaiko)

Chapter 2: Data Preparation πŸ“– View Chapter

  • Data Loading - Processing and loading documents in multiple formats
  • Text Chunking - Text splitting strategies and optimization

Part 2: Index Construction and Optimization

Chapter 3: Index Construction πŸ“– View Chapter

  • Vector Embeddings - Detailed explanation of text vectorization techniques
  • Multimodal Embeddings - Multimodal vectorization of text and images
  • Vector Databases - Vector storage and retrieval systems
  • Milvus in Practice - Hands-on multimodal retrieval with Milvus
  • Index Optimization - Techniques for tuning index performance

Part 3: Advanced Retrieval Techniques

Chapter 4: Retrieval Optimization πŸ“– View Chapter

  • Hybrid Retrieval - Combining dense and sparse retrieval
  • Query Construction - Intelligent query understanding and construction
  • Text2SQL - Converting natural language into SQL queries
  • Query Rewriting and Routing - Query optimization strategies
  • Advanced Retrieval Techniques - Advanced retrieval algorithms

Part 4: Generation and Evaluation

Chapter 5: Generation Integration πŸ“– View Chapter

  • Formatted Generation - Structured output and format control

Chapter 6: RAG System Evaluation πŸ“– View Chapter

  • Introduction to Evaluation - RAG system evaluation methodology
  • Evaluation Tools - Common evaluation tools and metrics

Part 5: Advanced Applications and Hands-on Projects

Chapter 7: Advanced RAG Architectures (Extended Section) πŸ“– View Chapter

  • Knowledge Graph-Based RAG

Chapter 8: Hands-on Project I πŸ“– View Chapter

  • Environment Configuration and Project Architecture
  • Implementing the Data Preparation Module
  • Index Construction and Retrieval Optimization
  • Generation Integration and System Integration

Chapter 9: Hands-on Project I Optimization (Optional) πŸ“– View Chapter

🍽️ Project Demo

  • Graph RAG Architecture Design
  • Graph Data Modeling and Preparation
  • Milvus Index Construction
  • Intelligent Query Routing and Retrieval Strategies

Chapter 10: Hands-on Project II (Optional) πŸ“– View Chapter Planned

Extra Chapter

  • Simple Neo4J Application (Contributor: dalvqw)
  • Multimodal Omni Embedding Practice (Jina v5-omni) (Under optimization)

If you have valuable experience or specialized content related to RAG, vector databases, Agentic RAG, or related technologies, contributions as standalone chapters to the Extra Chapter section are very welcome. Before submitting, please read the Extra Chapter Contribution and PR Guide. Contributions will be evaluated based on completeness, practical depth, and reference value. Selected content may also be referenced or expanded upon in the main tutorial.

Directory Structure

all-in-rag/
β”œβ”€β”€ docs/           # Tutorial documentation
β”œβ”€β”€ code/           # Code examples
β”œβ”€β”€ data/           # Sample data
β”œβ”€β”€ models/         # Pre-trained models
β”œβ”€β”€ Extra-chapter/  # Extended chapters and community practice content
└── README.md       # Project documentation

Hands-on Project Demos

Chapter 8 - Project I:

Project I

Chapter 9 - Project I (Graph RAG Optimization):

Project I (Graph RAG Optimization)

Chapter 10 - Project II:

Acknowledgments

Core Contributor

  • dalvqw - Project Lead (Project initiator and primary contributor)

Extra Chapter Contributor

  • Sun Chao - Content Creator (Datawhale member - Shanghai University of Engineering Science)

Special Thanks

  • Thanks to @Sm1les for their help and support with this project
  • Thanks to all developers who have contributed to this project
  • Thanks to the open-source community for providing excellent tools and frameworks
  • Special thanks to the following developers who contributed to this tutorial!

Contributors

Made with contrib.rocks.

Contributing

We welcome all forms of contributions, including but not limited to:

  • 🚨 Bug Reports: If you find an issue, please submit an Issue
  • πŸ’­ Tutorial Suggestions: If you have ideas or suggestions, feel free to discuss them in Discussions
  • πŸ“š Documentation Improvements: Help improve the documentation and example code (currently, PRs are accepted only for high-quality Extra Chapter content)

Star History

all-in-rag stats

If this project is helpful to you, please give us a ⭐️

Help more people discover this project!

star

About Datawhale

Datawhale

Scan the QR code to follow Datawhale's official account and discover more high-quality open-source content


License

Creative Commons License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Releases

Release information has not been added yet.

Complete your AI stack

Add specialist tools for research, coding, visual content, video, and automation.

Perplexity logo
Perplexity
Research

AI-powered search and research assistant

View tool
Cursor logo
Cursor
Coding

AI coding editor and autonomous software development platform

View tool
Midjourney logo
Midjourney
Images

AI image and video generation with advanced personalization

View tool
Runway logo
Runway
Video

AI video generation and creative production platform

View tool
n8n logo
n8n
Automation

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

View tool
Best alternatives

Compare similar tools in the same category.

CodeRabbit logo

CodeRabbit

AI-powered code review assistant for pull requests.

OpenClaw logo

OpenClaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

Cursor logo

Cursor

AI coding editor and autonomous software development platform

DeepSeek logo

DeepSeek

AI assistant for reasoning, coding, research, and agent tasks

ECC logo

ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

View all in this category
Help
Pick an answer below
Hi! I can point you to the right tool or guide. What are you looking for?
Browse all articles