Privacy choices: we'd like to measure visits anonymously (our own cookie-free counter plus Google Analytics, which sets its own cookies; no ads) and load Beehiiv's newsletter sign-up, which may set its own cookies. Nothing optional runs until you choose. Privacy policy

AgentScout / Tasks / Building AI agents / RAG and documents

RAG and document tools for building AI agents

Retrieval tools that let agents search documents, PDFs and knowledge bases and answer from them (RAG). Of the 704 tools on our building AI agents page, 46 fit this narrower job. By pricing: 38 open source, 1 source-available, 2 free or freemium, 5 pricing on the maker's site. The most-starred open repos here are Headroom (81,387 stars), Mem0 (69,957 stars), Context7 (65,796 stars). Most come from the frameworks (21), memory & RAG (10), MCP servers (7) categories.

Updated

Headroom logo

Headroom

memory & RAGOpen source

Headroom is an Apache-2.0 library, proxy and MCP server that compresses what an AI agent reads, including tool outputs, logs, files, RAG chunks and chat history, before it reaches the model, so you send fewer input tokens for the same answers. The project's own measurements show 21 to 57 percent fewer input tokens across four agent scenarios and over 90 percent on repeated JSON arrays and log lines, with little saving on prose. Compression runs locally, and it is on PyPI and npm as headroom-ai.

Added

Mem0 logo

Mem0

memory & RAGOpen source + cloud

Mem0 is an open-source memory layer for AI agents that extracts facts from conversations in a single add-only pass, links entities across memories and retrieves them in later sessions, with an Apache-2.0 SDK and a managed platform.

Added

Context7 logo

Context7

MCP serversFreemiumResponded 3/3 checks in last 30 days

MCP server and platform that feeds coding agents up-to-date, version-specific library documentation.

Added

PrivateGPT logo

PrivateGPT

frameworksOpen source

PrivateGPT is an Apache-2.0 API layer that turns local models into private AI applications: it speaks a Claude-style messages API and adds file ingestion, retrieval with citations and agentic RAG, built-in tools (web search, web fetch, code execution), custom tools, MCP connectors and structured access such as text-to-SQL. It does not run models itself; it connects to any OpenAI-compatible inference server (Ollama, llama.cpp, vLLM and others) and ships a workbench UI at /ui for testing.

Added

LlamaIndex logo

LlamaIndex

frameworksOpen source + cloud

LlamaIndex is an MIT-licensed Python framework for building agents and RAG pipelines over your own documents and data, with connectors, indexes, query engines and agent workflows. The company now focuses on document parsing and extraction: LlamaParse is its hosted platform for agentic OCR, parsing, extraction and indexing, and LiteParse is a free, fast open-source parser.

Added

AstrBot logo

AstrBot

frameworksOpen source

AstrBot is an AGPL-3.0, all-in-one agent chatbot platform that connects LLMs to messaging apps such as QQ, WeChat Work, Feishu, DingTalk, WeChat Official Accounts, Telegram and Slack. It supports multimodal chat, agents, MCP, skills, knowledge bases, personas and automatic context compression, integrates with Dify, Alibaba Cloud Bailian and Coze, offers an agent sandbox, and has 1,000+ one-click plugins for building personal assistants, support bots or team knowledge bots.

Added

MindsHub logo

MindsHub

productivityOpen source + cloud

MindsDB's agent workspace for research, analysis, documents and coding, with a model router, a scoped vault for connected data and swappable open-source agent harnesses.

Added

DSPy logo

DSPy

frameworksOpen source

DSPy (Declarative Self-improving Python) is Stanford NLP's MIT-licensed framework for programming rather than prompting language models. You write modular Python components (signatures and modules) for classifiers, RAG pipelines or agent loops, and DSPy's optimizers tune the prompts and, optionally, the model weights against your metric, so the pipeline improves without hand-editing brittle prompts. Install it with pip install dspy; docs live at dspy.ai.

Added

ChatDev logo

ChatDev

frameworksOpen source

ChatDev is an Apache-2.0 multi-agent platform from OpenBMB and Tsinghua. ChatDev 2.0 (DevAll) is a zero-code system: you define agents, workflows and tasks in configuration and it orchestrates them for jobs such as data visualization, 3D generation and deep research. The original ChatDev 1.0, kept as a legacy mode, simulates a virtual software company where CEO, CTO, programmer and tester agents design, code, test and document an app through structured chats.

Added

ScrapeGraphAI logo

ScrapeGraphAI

browser/computer useOpen source + cloud

ScrapeGraphAI is an MIT-licensed Python library for LLM-driven web scraping. You describe the data you want in plain language and it builds a graph pipeline that fetches a page, website or document (HTML, XML, JSON or Markdown) and returns structured output, with ready graphs for single pages, multi-page search and scripted scrapers. It works with hosted models such as OpenAI or with local ones through Ollama. The same team runs a hosted API for scraping at scale.

Added

Serena logo

Serena

MCP serversOpen sourceLocal only

MCP toolkit that gives coding agents semantic code retrieval and editing, like IDE features.

Added

Mastra logo

Mastra

frameworksOpen source

TypeScript framework for agents, workflows and RAG.

Added

Haystack logo

Haystack

frameworksOpen source + cloud

Open-source orchestration framework for building production LLM apps, RAG and agents.

Added

Opik logo

Opik

evals & observabilityOpen source + cloud

Opik is Comet's Apache-2.0 platform for LLM observability and evaluation: it traces LLM calls, RAG pipelines and agent runs, scores them with built-in and custom metrics (including LLM-as-judge), runs experiments on datasets, manages prompts and monitors production traffic with dashboards. SDKs and integrations cover Python, TypeScript, OpenAI, LangChain, LlamaIndex and other frameworks. The full platform is free to self-host, or you can use Comet's hosted cloud.

Added

Docmost logo

Docmost

frameworksOpen source + cloud

Docmost is an open-source collaborative wiki and documentation software. It is an open-source alternative to Confluence and Notion

Added

Agent Zero logo

Agent Zero

frameworksOpen source

Agent Zero is an open-source AI agent that gets its own Linux computer: inside a Docker sandbox it uses a terminal, a browser and desktop apps to research, write and run code, and create and edit documents, building its own tools and correcting itself as it goes. You watch and can step in through a web UI, connect local folders when needed, and choose the models it uses. It is actively developed, with v2.16 released in November 2026.

Added

RocketRide logo

RocketRide

frameworksOpen source

RocketRide is an MIT-licensed open-source AI meta-harness with a C++ runtime for building, testing and publishing durable agents. The README still documents its pipeline builder. On-prem is marked free; RocketRide Cloud is marked live. GitHub listed 20,008 stars on 20 Nov 2026.

Added

llmware logo

llmware

memory & RAGOpen source

Framework for building private, local RAG and agent applications with small specialized models on AI PCs, edge and self-hosted setups.

Added

txtai logo

txtai

memory & RAGOpen source

All-in-one Python framework for semantic search, LLM orchestration and agents built on an embeddings database of vector, graph and relational indexes.

Added

Kami logo

Kami

frameworksOpen source + cloud

Kami is a document design system that coding agents use when a page or a report has to look finished. It supplies layout rules and templates for one-pagers, letters, portfolios, resumes, reports and slides. The site says an agent can export PDF, PNG or an editable PowerPoint file. Each page uses one typeface, a paper-colored canvas and a single accent. A release titled Cleaner Reports was published on 29 Oct 2026. GitHub recorded MIT, 12,695 stars and 594 forks on 2 Dec 2026.

Added

Ipollowork logo

Ipollowork

frameworksSee site

Enterprise-grade, local-first Agent Workbench for people and agent teams. A unified multi-engine workspace for Codex Harness, DeepSeek Harness, and OpenCode, with unified plugins and Skills, multi-agent projects and tasks, and editable code, documents, presentations, design, and video.

Added

Ruoyi AI logo

Ruoyi AI

memory & RAGOpen source + cloud

Enterprise-grade AI agent framework with multi-provider LLM management, secure knowledge bases and high-precision RAG, visual workflow orchestration, and multi-agent coordination

Added

RLinf logo

RLinf

frameworksOpen source

RLinf is an Apache-2.0 reinforcement-learning infrastructure for embodied and agentic AI that scales PPO and GRPO training across GPUs for vision-language-action robot policies and LLM agents, with recent support for OpenPI pi0.5 fine-tuning, GenieSim, SO-101 arms and humanoid simulators; documentation is on Read the Docs.

Added

UltraRAG logo

UltraRAG

memory & RAGOpen source

Low-code MCP-based framework from OpenBMB for building and debugging complex RAG pipelines with visible reasoning logic.

Added

Kiln logo

Kiln

evals & observabilitySource-available

Free desktop app and open-source library for building AI systems with evals, RAG, agents, fine-tuning and synthetic data in one workbench.

Added

DocETL logo

DocETL

frameworksOpen source

System for agentic, LLM-powered document processing and ETL pipelines from UC Berkeley.

Added

SimpleMem logo

SimpleMem

memory & RAGOpen source

Research-backed lifelong memory library for LLM agents that stores, compresses and retrieves text and multimodal memories, usable over MCP.

Added

Cortex logo

Cortex

MCP serversOpen sourceNot yet checked

Cortex is an MCP server that gives agents a way to handle generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI.

Added

Agentero logo

Agentero

NewresearchOpen source

Agentero is a research workspace for reading papers with an agent. Papers, notes, and the conversation stay on your machine. While you read a PDF you can send a selected passage, a figure, or a note to the agent and ask it to work from that text. The project is aimed at the gap between a reference library and the chat where you actually think. The repository is MIT. GitHub recorded 3,086 stars and 205 forks on 3 Dec 2026. No dollar price was listed in the README sections checked that day.

Added

Papersgpt For Zotero logo

Papersgpt For Zotero

MCP serversOpen sourceNot yet checked

Papersgpt For Zotero is an MCP server that gives agents a way to handle professional AI research tool for Zotero: chat with PDFs, whole-library search, Literature.

Added

Neuron AI logo

Neuron AI

frameworksOpen source

PHP framework for creating and orchestrating AI agents with LLMs, tools, vector stores and memory.

Added

CyberVerse logo

CyberVerse

voiceOpen source

CyberVerse is a GPL-3.0, self-hosted framework for real-time digital-human agents: it builds voice-first AI agents over WebRTC with persona memory, tools and RAG, and can add a talking digital-human video generated from a single photo. It suits teams that want a JARVIS-style assistant or avatar agent they run on their own infrastructure.

Added

Langchain.rb logo

Langchain.rb

frameworksOpen source

Langchain.rb is an MIT-licensed Ruby gem for building LLM-powered applications: a unified interface across providers such as OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral and Ollama, plus prompt management, output parsers, retrieval-augmented generation over vector stores, tool-using Assistants and evaluations. A companion langchainrb_rails gem adds deep Rails integration.

Added

SAG-Wiki logo

SAG-Wiki

memory & RAGOpen source

SAG-Wiki is an MIT desktop knowledge base for macOS and Windows that indexes and searches your local files without LLM calls, then answers questions with citations you can trace to the source. PDFs become searchable before background OCR and table extraction finish, Office and RTF files are indexed too, and an agent skill lets Claude Code and other agents query the same library.

Added

Pixeltable logo

Pixeltable

memory & RAGOpen source + cloud

Multimodal data layer that combines storage, transforms, indexing and retrieval in one Python library for building agents over images, video and documents.

Added

Inno Agent logo

Inno Agent

memory & RAGOpen source

An open-source personal learning agent with three-layer memory (learner profile / wiki knowledge base / cross-conversation recall), a proactive scheduler, personal IM channels, and a workspace-scoped Practice Lab — built on the Pi SDK.

Added

BaseAI logo

BaseAI

frameworksSee site

Web AI framework from Langbase for building AI agents with memory (RAG) and deploying them serverless.

Added

Moss logo

Moss

frameworksOpen source

Moss is an open-source agent project that helps builders handle retrieval layer for production AI systems.

Added

Knowledge Agent Template logo

Knowledge Agent Template

frameworksOpen source

Knowledge Agent Template is an open-source agent project that helps builders handle file-system and knowledge based agent template.

Added

Dynamiq logo

Dynamiq

frameworksOpen source

Python orchestration framework for building agentic and RAG applications from reusable nodes and workflows.

Added

Waggle logo

Waggle

evals & observabilityOpen source

Waggle shows which files an AI agent actually opened before it answered. Instead of pasting whole documents between agents, it hands over short references that can be traced back to the source, so you can check whether an answer was grounded in what you gave the agent and send it back when it skipped the reading. It plugs into agent harnesses over MCP.

Added

Lattice logo

Lattice

frameworksOpen source

Lattice is an open-source agent project that helps builders handle local-first, agent-first LaTeX writing app for macOS: live PDF, annotations, papers.

Added

ESG Hub MCP Server logo

ESG Hub MCP Server

MCP serversSee siteNeeds auth

ESG knowledge base for AI agents: hybrid search, glossary, frameworks, industries, graph traversal.

Added

AIPPT.org logo

AIPPT.org

productivityFreemium

AIPPT is a free-to-try PowerPoint toolkit that merges and compresses decks in your browser without uploading files, turns PDFs into editable slides, and uses AI to draft a native PowerPoint file from a topic, pasted text, Markdown or a PDF. Paid credits or a Pro plan unlock a download of the full deck.

Added

GameAnalytics Documentation logo

GameAnalytics Documentation

MCP serversSee siteNot yet checked

Search GameAnalytics docs: Unity, Unreal, iOS, Android SDK and API guides for mobile game analytics.

Added

Metabind Docs logo

Metabind Docs

MCP serversSee siteNot yet checked

Search and read the Metabind documentation: MCP Apps, BindJS, the SDKs, the CLI, and the APIs.

Added

GitHub repos (43)

RepoGitHub starsLicenceLast push
Headroom logoHeadroom ↗81,387Apache License 2.02026-12-02
Mem0 logoMem0 ↗69,957Apache License 2.02026-11-27
Context7 logoContext7 ↗65,796MIT2026-12-02
PrivateGPT logoPrivateGPT ↗57,669Apache License 2.02026-11-26
LlamaIndex logoLlamaIndex ↗53,110MIT2026-12-02
AstrBot logoAstrBot ↗47,869GNU Affero General Public License v3.02026-12-02
MindsHub logoMindsHub ↗39,909MIT2026-10-23
DSPy logoDSPy ↗39,350MIT2026-12-02
ChatDev logoChatDev ↗34,918Apache License 2.02026-10-30
ScrapeGraphAI logoScrapeGraphAI ↗33,036MIT2026-10-06
Serena logoSerena ↗31,913GPL-3.0-or-later for the Serena application; MIT for SolidLSP2026-11-27
Mastra logoMastra ↗29,973Apache License 2.0, except ee/ directories (separate licence)2026-12-02
Haystack logoHaystack ↗27,154Apache License 2.02026-12-02
Opik logoOpik ↗23,550Apache License 2.02026-12-02
Docmost logoDocmost ↗22,494AGPL-3.02026-12-02

Top 15 of 43 by stars. Stars and licence come from each repo, checked when the listing was last verified.

FAQ

What are the best AI tools for building AI agents focused on RAG and documents?

We list 46. The first three by GitHub stars and featured status are Headroom: Headroom is an Apache-2.0 library, proxy and MCP server that compresses what an AI agent reads, including tool outputs, logs, files, RAG chunks and chat history, before it reaches the model, so you send fewer input tokens for the same answers. The project's own measurements show 21 to 57 percent fewer input tokens across four agent scenarios and over 90 percent on repeated JSON arrays and log lines, with little saving on prose. Compression runs locally, and it is on PyPI and npm as headroom-ai.; Mem0: Mem0 is an open-source memory layer for AI agents that extracts facts from conversations in a single add-only pass, links entities across memories and retrieves them in later sessions, with an Apache-2.0 SDK and a managed platform.; Context7: MCP server and platform that feeds coding agents up-to-date, version-specific library documentation.

Are there free or open-source options?

Yes: 38 open source, 1 source-available, 2 free or freemium, 5 pricing on the maker's site. Pricing is as each maker states it.

More from building AI agents

Tools are grouped by what each says it does. Missing one? Submit it free.