Discover / RAG & Knowledge

AutoRAG

by Marker-Inc-KoreaTypeScript

Automated tool for evaluating and optimizing RAG pipeline configurations.

Repositorystable

Maturity: stable because 3y old, v2.1.0 released 10d ago. Derived from release and commit history, not a rating.

Stars
5.0k
Forks
420
Downloads / mo
300
Last commit
2026-08-01
License
NOASSERTION
Open issues
117

Market and trust evidence

Edition not yet matched

No exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.

Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.

In practice

Written by AI from this repository’s README · high confidence

Search tools return file paths and matching lines, leaving the reading, judging and synthesis to the person asking.

Use it when

Use it when an agent needs curated answers from PDFs, wikis and notes rather than raw grep output.

Not the right pick when

Not the original RAG AutoML pipeline optimizer, which now lives in the legacy directory in maintenance mode only.

Capabilities

  • two tier workflow where a parent orchestrator delegates to explorer agents
  • pluggable retrieval methods with BM25 and MinSync enabled by default
  • ResultMerger handles cross method score normalization and deduplication
  • self evolving memory that learns from feedback
  • read only read, grep, find and ls tools for explorers
  • results returned as a structured SearchDocumentsResponse

Requirements

  • A pre-installed MinSync binary since autoInstall is false
  • Models available in the user's authenticated runtime, no provider default ships with it
  • Configured source directories to search

Cost: Cost not stated

Install

Derived from the published package name in the repository, not from a model.

Video walkthroughs

Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.

What the repository ships

Has testsHas docsCI configured

Detected from the actual files in the repository root.

Latest release v2.1.0

Published 2026-07-24

What's Changed

  • chore(legacy): batch-apply Dependabot dependency updates by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1333
  • feat(generator): support latest OpenAI models (gpt-5.6 family) + migrate QA helpers to Responses API by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1338
  • Bump pi-heif from 0.22.0 to 1.3.0 in /legacy by @dependabot[bot] in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1337
  • feat(legacy): add Azure OpenAI generator support by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1340
  • feat(legacy): update MiniMax model catalog for M3 by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1341
  • fix(legacy): apply reviewed runtime and metric fixes by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1342
  • build(deps): bump pyasn1 from 0.6.1 to 0.6.4 in /legacy by @dependabot[bot] in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1339
  • feat(parser): add legacy HWP5 text extraction by @seongyeon1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1349
  • feat(datasource): macOS Spotlight skill + traceable sources (#1350) by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1351
  • release: AutoRAG v2.1.0 by @vkehfdl1 in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1352

New Contributors

  • @seongyeon1 made their first contribution in https://github.com/Marker-Inc-Korea/AutoRAG/pull/1349

Full Changelog: https://github.com/Marker-Inc-Korea/AutoRAG/compare/v2.0.0...v2.1.0

Tags

README

AutoRAG

A self-evolving librarian agent for document collections.

[!IMPORTANT]

Looking for the original AutoRAG (RAG AutoML / pipeline optimization tool)?

This repository now hosts AutoRAG 2.0, a complete reimagining of AutoRAG as a self-evolving librarian agent. The original Python-based AutoRAG — the RAG AutoML tool for automatically finding an optimal RAG pipeline for your data — now lives in the legacy/ directory of this repository.

The legacy AutoRAG is NOT abandoned. It continues to be maintained (bug fixes, dependency updates, and PyPI releases via pip install AutoRAG) in maintenance mode. Existing users can keep using it exactly as before — see the legacy README for its documentation, and file issues in this repository as usual. New feature development is focused on AutoRAG 2.0.

AutoRAG searches your PDFs, wikis, notes, research papers, and knowledge bases — then curates the results into clean, numbered knowledge units. No raw grep dumps. Just answers.

AutoRAG is a customized Pi agent — the Pi agent loop configured into a librarian. Searches use a two-tier workflow: a parent orchestrator delegates exploration to explorer agents. The roles and providers are independently configured from the models available in the user's authenticated runtime; AutoRAG does not ship a private provider default.

Why AutoRAG

The problem with search tools

Every search tool gives you the same thing: a list of file paths and matching lines. Then you have to:

  • Open each file
  • Read the surrounding context
  • Decide what's relevant
  • Synthesize an answer
  • Remember what worked for next time

That's the human doing all the hard work. The tool just points.

AutoRAG does the hard work

AutoRAG is not a search tool. It's a librarian — it searches, reads, thinks, and reports back:


You ask:  "What were the key findings in the Q3 report?"

AutoRAG:
[1] Revenue grew 23% YoY to $4.2M, driven by enterprise contracts. (pages 3-5)
[2] Three new risk factors: supply chain, regulatory, talent retention. (pages 12-14)
[3] Headcount target missed by 12 — engineering hiring bottleneck. (page 8)

No file paths. No line numbers. Just curated knowledge you can act on.

It gets smarter over time

AutoRAG has a self-evolving memory system. Every search teaches it something:

  • Which retrieval methods work for which types of queries
  • Which document areas are most productive
  • What the caller found useful (via explicit feedback)

A fresh AutoRAG tries everything. A seasoned one knows exactly where to look. This is not a static configuration — it's learned behavior from real usage.

Multiple retrieval methods, one interface

Different documents need different search strategies:

| Your documents | Best method | Why |

|---|---|---|

| Plain text, config files | grep (pattern matching) | Fast, precise, literal |

| Research papers, dense prose | Vector search (semantic) | Understands meaning, not just keywords |

| Legal documents, specifications | BM25 (keyword ranking) | Handles domain terminology well |

| Mixed collections | Hybrid (vector + BM25) | Combines precision and recall |

AutoRAG supports pluggable retrieval methods. It ships with lexical BM25 and semantic MinSync methods wired through the RetrievalMethodRegistry, and the architecture is ready for additional vector and hybrid backends. The parent orchestrator owns process-bound retrieval tools and gives bounded seed packs to explorers; explorers use read-only read/grep/find/ls tools to inspect the underlying documents. The ResultMerger handles cross-method score normalization and deduplication — you get one unified result set regardless of how many methods contributed.

BM25 and MinSync are enabled by default — no explicit configuration is needed for standard lexical + semantic retrieval. Both can be disabled by setting "bm25": false or "minSync": false in the config file. MinSync uses a pre-installed binary (autoInstall: false); configure minSync.embedder via autorag init --embedder-* flags for remote embedding endpoints. AutoRAG never forces TEI or any external embedding service.

Real directory access

AutoRAG reads configured source directories through delegated explorer tasks. Each explorer is assigned exactly one normalized configured search root as its cwd; the top-level subagent invocation sets agentScope: "user" and artifacts: false exactly once for single, tasks, chain, or parallel dispatch, and nested explorer task items omit both fields. Project-local .pi-subagents debug artifacts are disabled. Explorers use read-only read/grep/find/ls; the parent orchestrator owns retrieval seed tools and must delegate document reading before curating. Curated answers are returned as a structured SearchDocumentsResponse; results carry their real source (file path or datasource id) in the internal mapping for feedback and curation. BM25 and MinSync index parsed markdown mirrors under .autorag.

Each explorer task contains an Assignment V1 block — a sentinel-wrapped JSON body with originalQuery (the caller query verbatim), method (the selected retrieval path), and queryVariants (a nonempty array), followed by canonical role lines requiring retrievedAt and temporal metadata:


<<<AUTORAG_ASSIGNMENT_V1>>>
{"originalQuery":"<caller query verbatim>","method":"<selected retrieval method>","queryVariants":["<variant 1>","<variant 2>"]}
<<<END_AUTORAG_ASSIGNMENT_V1>>>
Required handoff: include retrievedAt.
Required handoff: include temporal metadata.

A legacy labeled format (Original query:, Selected retrieval method:, Query variants:) is accepted for compatibility. Missing or null top-level artifacts, agentScope, and leaf model fields are safely autofilled before validation; explicit wrong values (artifacts: true, agentScope: "project", a non-configured model) remain rejected. There is no single-agent fallback. See docs/subagent-orchestration.md for the full dispatch contract, templates, anti-examples, and stable coded dispatch errors.

Optional Jikji discovery and indexing

AutoRAG can opt into Jikji as a local CLI-backed find-first discovery and indexing layer. Jikji is optional: AutoRAG does not vendor it, install it, or register it as a retrieval backend when enabled.

When Jikji is configured, AutoRAG calls jikji find ROOT "query" --json via a policy-aware jikji_find tool as the first local-discovery action. The tool parses and validates the upstream answer-pack and honors its handoff_action (direct_use / jikji_retry / raw_fallback_after_retry), tool_call_policy (stop_after_find, forbidden_tools, allowed_followups), and agent_should_not_rerank. Explorer read/grep/find/ls discovery is the fallback only when the answer-pack permits raw fallback (raw_fallback_after_retry, after the required retry) or when Jikji is unavailable/unconfigured. prepare/refresh remain for indexing only and do not answer queries directly.

Programmatic use:


const agent = new AutoRAGAgent({
  searchPaths: ["/path/to/documents"],
  jikji: { binaryPath: "jikji" },
});
await agent.prepareJikji();

The same .autorag/jikji.json shape configures Jikji when present:


{
  "enabled": true,
  "binaryPath": "jikji",
  "timeoutMs": 10000,
  "maxBufferBytes": 1048576,
  "includeHidden": false,
  "includeSensitive": false,
  "maxFiles": 0,
  "writeAgentRules": false,
  "enableMediaIndex": false,
  "exclude": []
}

Call agent.prepareJikji() (or agent.refresh()) to prepare configured source roots. Hidden files, sensitive files, and media indexing are disabled by default; AutoRAG does not pass --include-hidden, --include-sensitive, or --enable-media-index unless the corresponding option is true. AutoRAG-managed prepare runs with --no-agent-rules by default, so it never rewrites the consumer repo's AGENTS.md/CLAUDE.md/.cursorrules; an explicit writeAgentRules: true opt-in re-enables upstream routing-block injection. AutoRAG passes --enable-media-index only when enableMediaIndex: true.

The upstream Rust PrepareArgs defines reference defaults that AutoRAG does not override unless explicitly configured: parse timeout 5.0, max hash bytes 512 MiB, doc text max chars 2,000,000, doc text chunk chars 1,000,000, and media index max MB 25.0. AutoRAG emits --parse-timeout, --max-hash-bytes, --doc-text-max-chars, --doc-text-chunk-chars, and --media-index-max-mb only when the matching option is set, so the upstream defaults apply otherwise. AutoRAG answers queries through jikji find (find-first) plus the Pi agent loop and its registered retrieval methods; prepare/refresh are indexing-only.

Datasource skills

Datasource skills let AutoRAG search external, server-configured data sources through the same retrieval pipeline as local documents. A skill describes what it indexes, how it should be refreshed, what source instances exist, and which permission tags/scopes bound access. Retrieval still flows through RetrievalMethodRegistryParallelRetriever → datasource result filtering → ResultMerger; datasource skills do not create a parallel search path.

Security defaults are intentionally strict:

  • datasource access is default-deny unless trusted server/API configuration supplies datasourceAccess.allowedTags and datasourceAccess.allowedScopes;
  • model/tool arguments never grant datasource tags or scopes;
  • search_datasource_documents accepts only { query, topK?, scope? }, and scope can only narrow trusted access.
Supported datasources

| Datasource | Skill | Connects via | Notes |

|---|---|---|---|

| KakaoTalk | katok | external katok CLI | first datasource skill; AutoRAG never reads KakaoTalk databases directly |

| Slack | slack | Slack Web API (bot token) | workspace/channel history; per-channel scope failures degrade to warnings |

| Discord | discord | Discord REST v10 (bot token) | guild/channel messages; Hangul channel names work as scopes |

| Notion | notion | Notion API (integration token) | pages/databases shared with the integration; block-tree text |

| GitHub Issues/PRs | github | GitHub REST (token optional) | issues + PR bodies per owner/repo; public repos work unauthenticated |

| Google Drive | gdrive | Drive REST v3, or rclone CLI (backend: "rclone") | Docs/Sheets exported as text; the rclone backend also opens any of rclone's 70+ remotes |

| Gmail / IMAP | gmail | Gmail REST v1, or himalaya CLI (backend: "himalaya") | the himalaya backend indexes any IMAP/Maildir account it has configured — no OAuth plumbing |

| Local mail exports | mail-export | filesystem (.mbox / .eml) | classic From_ splitting, mailparser-based; count-only warnings |

| Obsidian vault | obsidian | filesystem (markdown) | frontmatter/inline tags, wiki links [[...]], embeds ![[...]] |

| RSS / news | rss | HTTP feed polling | RSS 2.0 + Atom, feed/category hierarchy, 24h dedupe window |

All of them share one framework: a trusted connector fetches documents at refresh time, chunks persist under <workspace>/.autorag/datasources/<skill>/<instance>/, and queries run against a local BM25 lexical index (Korean-aware prefix matching) through search_datasource_documents. Tokens are referenced by environment variable name only (e.g. SLACK_BOT_TOKEN), never stored in config. Auth/permission/rate-limit failures surface as path/PII-opaque diagnostics. See docs/manual-qa-datasources.md for the QA harnesses.

Configure them in config.json (CLI) or pass datasourceSkills programmatically:


{
  "datasources": {
    "slack":    { "connector": { "tokenEnv": "SLACK_BOT_TOKEN" } },
    "github":   { "connector": { "repos": ["owner/repo"] } },
    "gmail":    { "connector": { "backend": "himalaya", "account": "gmail", "folder": "INBOX" } },
    "gdrive":   { "connector": { "backend": "rclone", "remote": "gdrive:" } },
    "obsidian": { "connector": { "vaultPath": "/path/to/vault" } },
    "rss":      { "connector": { "feeds": [{ "url": "https://example.com/feed.xml" }] } }
  },
  "datasourceAccess": {
    "allowedTags": ["slack", "github", "gmail", "gdrive", "obsidian", "rss"],
    "allowedScopes": ["/slack/**", "/github/**", "/gmail/**", "/gdrive/**", "/obsidian/**", "/rss/**"]
  }
}
KakaoTalk (katok)

KakaoTalk was the first datasource skill. It uses the external katok CLI only — AutoRAG never reads KakaoTalk databases directly. katok failures return diagnostics instead of throwing, and remote embedding egress configuration is rejected before the CLI is spawned.


import { AutoRAGAgent, KatokSkill } from "@autorag/librarian";

const kakao = new KatokSkill({
  instanceId: "personal",
  tags: ["kakaotalk", "personal", "pii"],
  // Optional: client: new KatokClient({ binaryPath: "katok" })
});

const agent = new AutoRAGAgent({
  searchPaths: ["/path/to/documents"],
  datasourceSkills: [kakao],
  datasourceAccess: {
    allowedTags: ["kakaotalk"],
    allowedScopes: ["/kakao/personal/**"],
  },
});

await agent.refresh(); // refreshes parsed mirrors, BM25/MinSync, and datasource indexes
const results = await agent.searchDatasourceDocuments("meeting with Mina", { topK: 5 });

A datasource skill should provide polling/cron metadata for routine indexing, source descriptions for the agent prompt, slash-hierarchical opaque source paths such as /kakao/personal/chunks/<chunk-id>, and permission tags that match your server-side access policy.

Primary target: document collections

AutoRAG is bu

Truncated. Read the full README on GitHub ↗

Related tools