Skip to main content

General-purpose open-source RAG engine with multi-LLM, hybrid retrieval, GraphRAG, and MCP support

Project description

Axon

Your documents, answerable. On your hardware.

Drop in PDFs, code, spreadsheets, or URLs โ€” ask anything, get cited answers from a local LLM.
Nothing leaves your machine.

Python 3.10+ Tests License: MIT Code style: black


Axon REPL startup

๐Ÿค” Why Axon?

Most RAG tools make you choose between cloud power and data privacy. Axon runs entirely on your hardware โ€” full capability, zero egress.

  • ๐Ÿ”’ Private by default โ€” all inference runs locally via Ollama or vLLM. No API key, no upload, no telemetry.
  • ๐Ÿ“„ Ingest anything โ€” 54 file formats (PDF, DOCX, Jupyter, code, images, URLs) in one command. SHA-256 dedup skips unchanged files.
  • ๐Ÿค– Works in your tools โ€” @axon in Copilot Chat, MCP for Claude Code / Codex / Gemini CLI / Cursor, Graph panel in VS Code or your browser.
  • ๐Ÿค Built for teams โ€” share your knowledge base with signed, revocable read-only keys. Per-user permissions, full audit trail, no extra infrastructure.
  • ๐Ÿ•ธ๏ธ See your knowledge as a graph โ€” interactive 3D entity-relationship graph. Embedded webview in VS Code; opens in your browser everywhere else. Click any node to jump to the exact source line.
  • ๐Ÿ”ฌ Production-grade retrieval โ€” hybrid search, reranking, HyDE, multi-query expansion, and automatic web fallback. Zero manual tuning.

โœจ Capabilities

๐Ÿ” Retrieval

  • Hybrid semantic + keyword search
  • HyDE, multi-query, step-back, query decomposition
  • Sentence-window context retrieval
  • BGE reranker for second-pass precision
  • Web fallback via Brave Search (CRAG-Lite)
  • Smart per-question query routing

๐Ÿง  Graph Intelligence

  • RAPTOR โ€” hierarchical corpus summaries
  • GraphRAG โ€” entity/relation/community graph (local / global / hybrid)
  • Code Graph โ€” file/class/function graph with import edges
  • Interactive 3D graph โ€” embedded webview in VS Code, browser elsewhere

๐Ÿ“ฅ Ingest Everything

  • 54 file formats โ€” PDF, DOCX, XLSX, PPTX, Jupyter, images, 24 code formats
  • URL ingestion โ€” any public web page
  • SHA-256 dedup skips unchanged files
  • Stale detection for modified sources
  • 4 content-aware chunking strategies

๐Ÿ”ง LLMs & Embeddings

  • Local: Ollama, vLLM
  • Cloud: OpenAI, Gemini, xAI Grok, GitHub Copilot (API)
  • Hot-swap provider and model โ€” no restart needed
  • Streaming on all providers
  • 4 embedding providers; BGE-M3 for multilingual

๐Ÿ—๏ธ Projects & Privacy

  • Isolated knowledge base per project, with nesting
  • Federated search across projects (@projects, @mounts, @store)
  • Strict offline / air-gapped mode โ€” zero outbound calls
  • AxonStore โ€” signed read-only sharing across OS users

๐Ÿ›ก๏ธ Governance & Agents

  • Governance Console โ€” full audit trail of every query
  • Graceful maintenance states: normal โ†’ draining โ†’ readonly โ†’ offline
  • REST API โ€” 54 endpoints with Swagger docs at /docs
  • MCP server โ€” 30 tools for Claude Code, Codex, Gemini, Cursor, Copilot
  • @axon VS Code chat participant with Graph and Governance panels

โšก Quick Start

pip install -e .   # requires Python 3.10+ and Ollama
axon               # launches the interactive REPL

โ†’ Full installation guide with VS Code, MCP, and cloud provider setup


๐Ÿš€ Entry Points

Command Starts Default Port Best For
axon Interactive REPL โ€” Day-to-day exploration, power users
axon-api FastAPI REST server 8000 Agents, scripts, CI pipelines
axon-mcp MCP stdio server โ€” Any MCP-compatible agent (Claude Code, Codex, Gemini CLI, Cursor, Copilotโ€ฆ)
axon-ui Streamlit UI 8501 Browser-based exploration

๐Ÿ”Œ VS Code + GitHub Copilot

Axon Copilot integration

Axon VS Code Graph Panel โ€” answer, cited sources, and interactive 3D code graph

Install the bundled VSIX to unlock the @axon chat participant, Knowledge Graph panel, Code Graph panel, and Governance dashboard โ€” directly inside VS Code alongside Copilot.

Extensions panel  โ†’  "..."  โ†’  Install from VSIX...
โ†’  run `axon-ext`  (or install from VSIX manually)

Or connect via MCP for Copilot agent mode โ€” point .vscode/mcp.json at axon-mcp and all 30 tools appear in the agent hammer menu automatically.

Full setup guide โ†’


๐Ÿ“š Documentation

Getting started

Guide What it covers
๐Ÿš€ Getting Started First-time walkthrough โ€” ingest, query, settings
โš™๏ธ Setup Guide Install, models, VS Code extension, MCP connection
๐Ÿ”ง Troubleshooting Common errors and platform-specific fixes

Reference

Guide What it covers
๐Ÿ”‘ Admin Reference Every endpoint, REPL command, CLI flag, and config option
โšก Quick Reference Commands and flags at a glance
๐Ÿ“ก API Reference Full REST endpoint reference with request/response schemas
๐Ÿ”Œ MCP Tools All 30 MCP tool signatures with parameter defaults

Deep dives

Guide What it covers
๐Ÿค– Model Guide Choosing LLM and embeddings; per-provider config examples
๐Ÿ”ฌ Advanced RAG HyDE, RAPTOR, GraphRAG, CRAG-Lite โ€” how each technique works
๐ŸŒ Web Search Brave Search integration, CRAG-Lite fallback setup
๐Ÿ๏ธ Offline / Air-gap Guide Full air-gap setup, model pre-download, local-assets-only mode
๐Ÿ’ป Code RAG Guide Code graph retrieval and structural search
๐Ÿค AxonStore Multi-user sharing, revocation, and the lease lifecycle
๐Ÿ“Š Governance Console Audit trail, maintenance runbook, session management
๐Ÿ“ˆ Evaluation Guide RAGAS metrics, running evals, building testsets
๐Ÿ› ๏ธ Development Guide Tests, contributing, pre-commit hooks

๐Ÿ”’ Security

Ingestion is sandboxed to a configurable base directory (RAG_INGEST_BASE). Requests outside it are rejected with 403. See SECURITY.md.

๐Ÿ“„ License

MIT โ€” see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axon_rag-0.1.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axon_rag-0.1.0-py3-none-any.whl (784.2 kB view details)

Uploaded Python 3

File details

Details for the file axon_rag-0.1.0.tar.gz.

File metadata

  • Download URL: axon_rag-0.1.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for axon_rag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8b4b95751bd2946462630b7fc30c28195b154ad030c3682cf2eab472eb7372a8
MD5 12fa67937daa7190b109c71cf6731298
BLAKE2b-256 3d2434877add5b313df2957e0418d2d5a72accc731b94358f26eb6ac062afc8a

See more details on using hashes here.

File details

Details for the file axon_rag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: axon_rag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 784.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for axon_rag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9409946eb82a101576e545d64dfef0dda9d7ee19688222b221b564ba50dbd7d
MD5 97eecf64fa01be71c805f891ae925e8d
BLAKE2b-256 eebeae86de2353511519ffed55c33c546611020ca13ba83b4d4ee5fe16dc950f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page