awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
langchain-ai avatar

langchain-ai/rag-from-scratch

0
View on GitHub↗
7,393 stars·1,855 forks·Jupyter Notebook·16 views

Rag From Scratch

This project is an educational implementation guide and framework for building Retrieval Augmented Generation systems. It provides a workflow for constructing a knowledge base pipeline that partitions documents, indexes them as vectors, and provides external context for language model prompts.

The system features a document chunking framework that uses recursive character splitting to fit text into model context windows. It includes an in-memory vector store and a similarity search system that retrieves relevant text segments by calculating the mathematical distance between dense embedding vectors.

The project covers the end-to-end RAG pipeline development process, including custom data indexing, vector search implementation, and context management for large language models.

The implementation is provided as a series of Jupyter Notebooks.

Features

  • RAG Pipelines - Implements an end-to-end workflow that coordinates document ingestion, embedding, retrieval, and final text generation.
  • Retrieval Augmented Generation Guides - Provides a comprehensive, step-by-step educational guide for building a complete Retrieval Augmented Generation pipeline from scratch.
  • Context Injection - Provides mechanisms for dynamically inserting retrieved documents into AI model prompts for grounding.
  • Retrieval Augmented Generation - Combines large language models with external data retrieval to provide context-aware and accurate answers.
  • Text Chunks - Implements strategies for dividing long text into smaller overlapping segments to fit model token limits.
  • RAG Data Pipelines - Designs the end-to-end workflow from document partitioning and embedding to context retrieval.
  • RAG System Design - Provides a framework for indexing custom data and retrieving context for LLM prompts.
  • Dense Embeddings - Transforms raw text into high-dimensional numerical vectors that capture semantic meaning for retrieval.
  • Vector Similarity Search - Implements algorithms for calculating the mathematical distance between query and document embeddings.
  • Local Knowledge Base Indexers - Converts local documents into a searchable vector database for semantic retrieval by AI models.
  • Vector Search - Implements semantic search using numerical embeddings to find the most relevant text segments.
  • RAG Implementation Guides - Provides an educational guide for partitioning documents and indexing them as vectors for LLM context.
  • LLM Context Preparation - Dynamically prepares and inserts relevant information into LLM prompts to improve response quality.
  • Recursive Character Splitting - Uses a recursive hierarchy of delimiters to split text into semantically coherent chunks.
  • Vector Stores - Ships a local in-memory data structure for storing and retrieving document embeddings.
  • AI and Neural Networks - Implementing retrieval-augmented generation systems.
  • Artificial Intelligence - Listed in the “Artificial Intelligence” section of the Build Your Own X awesome list.

Star history

Star history chart for langchain-ai/rag-from-scratchStar history chart for langchain-ai/rag-from-scratch

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Rag From Scratch

These projects share indexed features with Rag From Scratch. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • datawhalechina/llm-universedatawhalechina avatar

    datawhalechina/llm-universe

    13,269View on GitHub↗

    llm-universe is a structured learning resource and technical guide focused on the development of large language model applications. It serves as a curriculum for mastering model orchestration, the creation of autonomous conversational agents, and the implementation of retrieval-augmented generation systems. The project provides detailed instructions on connecting model APIs with memory and tools to create execution chains. It specifically covers the construction of retrieval pipelines, including the process of cleaning raw documents, generating embeddings, and integrating vector databases to

    Jupyter Notebooklangchainrag
    View on GitHub↗13,269
  • bhaskatripathi/pdfgptbhaskatripathi avatar

    bhaskatripathi/pdfGPT

    7,164View on GitHub↗

    pdfGPT is a retrieval augmented generation application and chatbot designed to analyze PDF documents. It functions as a document analyzer and vector search interface, using large language models to answer questions grounded in the content of uploaded files. The system implements a pipeline that extracts text from PDFs, splits content into overlapping segments, and uses vector-based semantic search to retrieve relevant context. This process allows the application to provide responses with verifiable source citations, including page number references to the original document. The project also

    Pythonchatpdfchatwithpdfpdfgpt
    View on GitHub↗7,164
  • run-llama/ragsrun-llama avatar

    run-llama/rags

    6,540View on GitHub↗

    Rags is an orchestration tool for building retrieval-augmented generation pipelines and managing conversational data interfaces. It serves as a system for creating these pipelines from local files and web pages using natural language instructions to query, retrieve, and summarize information from connected datasets. The project features a multimodal retrieval system that identifies and extracts information across different data types and modalities. It includes a vector search orchestrator to manage chunking strategies and search parameters, alongside a pipeline builder that translates conver

    Pythonagentchatbotchatgpt
    View on GitHub↗6,540
  • sylphai-inc/adalflowSylphAI-Inc avatar

    SylphAI-Inc/AdalFlow

    4,167View on GitHub↗

    AdalFlow is an autonomous AI agent framework and LLM application library designed for building modular workflows. It serves as a model-agnostic interface and RAG pipeline orchestrator, allowing users to develop ReAct agents that utilize iterative reasoning and external tool execution to solve complex tasks. The project distinguishes itself through a prompt optimization system that uses textual gradient descent to automatically refine prompt templates and few-shot examples. It treats model feedback as a differentiable signal, enabling a form of LLM backpropagation to iteratively improve output

    Python
    View on GitHub↗4,167
Compare all 30 related projects→

Frequently asked questions

What does langchain-ai/rag-from-scratch do?

This project is an educational implementation guide and framework for building Retrieval Augmented Generation systems. It provides a workflow for constructing a knowledge base pipeline that partitions documents, indexes them as vectors, and provides external context for language model prompts.

What are the main features of langchain-ai/rag-from-scratch?

The main features of langchain-ai/rag-from-scratch are: RAG Pipelines, Retrieval Augmented Generation Guides, Context Injection, Retrieval Augmented Generation, Text Chunks, RAG Data Pipelines, RAG System Design, Dense Embeddings.

Which projects share features with langchain-ai/rag-from-scratch?

Projects with overlapping indexed features include: datawhalechina/llm-universe — llm-universe is a structured learning resource and technical guide focused on the development of large language model… bhaskatripathi/pdfgpt — pdfGPT is a retrieval augmented generation application and chatbot designed to analyze PDF documents. It functions as… sylphai-inc/adalflow — AdalFlow is an autonomous AI agent framework and LLM application library designed for building modular workflows. It… run-llama/rags — Rags is an orchestration tool for building retrieval-augmented generation pipelines and managing conversational data… langroid/langroid — Langroid is a multi-agent orchestration framework and tool integration suite designed for building complex AI… timescale/pgai — pgai is a PostgreSQL AI toolkit and framework designed to integrate large language models and vector embeddings…