← Back to Leaderboard
Udeeplethe

deeplethe/utopia

Self-hosted Rust and PostgreSQL GraphRAG for evidence-backed answers across time

View on GitHub ↗
Engineering Health (Methodology)
A · 87/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption21/25
Release Cadence11/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 8,980
24h Growth
+36
7d Growth
+210
Forks
1,241

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

deeplethe/utopia Star History (2026-08-11 - 2026-12-04) ALL-TIME STAR HISTORY (2026-08 – 2026-12) +9k in 115d · avg +78/day 9.5k 4.7k 0 2026-08-11: ★ 12026-08-22: ★ 3782026-08-29: ★ 6502026-09-05: ★ 3,5672026-09-12: ★ 4,9292026-09-19: ★ 7,0912026-09-26: ★ 7,5622026-10-03: ★ 7,8042026-10-10: ★ 8,0572026-10-17: ★ 8,2422026-10-24: ★ 8,3792026-10-31: ★ 8,5202026-11-07: ★ 8,5712026-11-14: ★ 8,5972026-11-21: ★ 8,6352026-11-28: ★ 8,8212026-12-04: ★ 8,980 ★ 9k 08-11 10-07 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Utopia is a self-hosted end-user application with a web console, graph browser, and ontology workbench. The Rust workspace separates the server and CLI from core types, storage, ingestion, extraction, reasoning, search, and model integration. The backend uses Tokio, Axum 0.8 with multipart support, and SQLx 0.8. The core deployment is one Rust binary and one PostgreSQL instance: pgvector handles vectors, Tantivy runs full-text search inside the application, and jobs are queued in a database table.

Uploads, scheduled connectors, and API submissions feed ingestion and extraction. The graph records both when a fact was valid and when the system learned it, with source evidence for later review. Document search fuses lexical and vector rankings through reciprocal rank fusion (RRF). The built-in agent can combine document retrieval, temporal graph reads, and queries against mounted databases. The same read-only tools are available through per-knowledge-base MCP; proposed knowledge writes go through human review.

Key Capabilities & Differentiators

Ingestion covers PDF, Office and OpenDocument spreadsheets, CSV/TSV, Markdown, HTML, and plain text, with legacy encoding detection. Scheduled connectors include web pages, RSS, GitHub, Jira, Notion, WebDAV, and S3-compatible buckets. Scans and images can use MinerU or Volcengine Ark vision, while recordings use a transcription model that labels speakers. Chat streams citations that open the supporting passages. Chat and embedding configuration uses OpenAI-compatible endpoints, including DeepSeek, Qwen, GLM, Ollama, and vLLM.

The differentiator is temporal querying, not simply retrieving a passage about a past event. A contract amendment can close the old term's validity interval without erasing it, so a user can ask what applied on a specific date and inspect the underlying sentence. A separate knowledge-time query can establish what the system had recorded at a given point. Five bundled ontology packs bootstrap a new knowledge base; uncertain cases go to human review rather than being resolved solely by model output.

Trade-offs & Limitations

Compared with a conventional PostgreSQL/pgvector RAG app, Utopia adds structured, dated facts and a review workflow to passage retrieval. That matters when an answer must distinguish when a policy took effect from when the organization learned about it. For a current-document FAQ, those extra layers can add more work than value. A bespoke graph-and-search stack gives a team more control over its component choices, but the team must integrate ingestion, temporal semantics, evidence, and agent access itself.

Embedding full-text search and putting the queue in PostgreSQL reduces the number of services to operate, but ingestion jobs and interactive requests still compete for application and database resources. Test them together at representative volumes. Temporal answers also depend on source dates, extraction quality, and the team's capacity to review ambiguous facts. Release-candidate maturity and forward-only migrations are reasons to rehearse backup and restore before using the system for audit-sensitive records.

Hardware & Deployment Guide

For a pilot, run docker compose --profile app up -d and open http://localhost:1516. The bundled database defaults to pgvector/pgvector:pg16. Recent prebuilt images target Linux amd64 and arm64; tags through 0.1.0-rc7 are amd64-only. Local development requires Rust 1.85+, Node 20+, and pnpm. cargo run -p utopia-server starts the backend and runs migrations; the frontend dev server listens on 5173 and proxies /api to the backend. Configure chat and embedding endpoints before extracting documents.

Before exposing the service, control initial registration, review the automatically created public knowledge base, replace the default database password, and configure the restricted application database role; without it the app runs as the owner. Offline operation requires locally reachable model services and no dependency on external connectors or optional media endpoints. At v0.1, migrations are forward-only: pin UTOPIA_IMAGE and back up PostgreSQL and data before upgrades. The rc8 milestone refined extraction of document dates and how those dates support facts; rc9 fixed vector-index setup under the restricted role and kept chat memory working when an embedding model failed.

Temporal queries: Distinguish when a fact held from when the knowledge base learned it.
Evidence: Link extracted facts to source material and stream answers with citations that open the supporting passages.
Hybrid retrieval: Fuse Tantivy full-text and pgvector rankings with reciprocal rank fusion (RRF).
Agent access: Expose read-only tools over per-knowledge-base MCP with scoped tokens; route proposed writes to human review.
Ontology cold start: Choose from five bundled packs—schema.org, W3C Org, PROV-O, FOAF, and IOF Core.
Runtime footprint: One Rust binary and PostgreSQL for the core stack, with embedded full-text search and a database-backed job queue.
Best For

Legal, procurement, and governance teams piloting a self-hosted knowledge base that must show what applied on a date, what was known then, and which source supports the answer.

Skip If

You only need current-document search and citations, cannot staff review of extracted facts, or require a stable schema with rollback migrations.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
git clone https://github.com/deeplethe/utopia.git
cd utopia
docker compose --profile app up -d

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
utopia ★9k+210RustApache-2.0Self-hosted Rust and PostgreSQL GraphRAG for evidence-backed answers across time
WeKnora38.8k+387Go—Self-hosted RAG, agents, and a Wiki on shared document knowledge bases
serviette58.6k+11PythonMITSelf-hosted RAG with a separate indexer that keeps document answers current
ragflow95.1k+297GoApache-2.0Go-based RAG platform for parsing complex documents and grounding answers in sou

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/deeplethe/utopia.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

deeplethe/utopia Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about utopia

How should an existing agent or ingestion pipeline integrate with Utopia?

Use a knowledge-base-scoped MCP token to let an agent search documents, traverse the graph, inspect facts as of a date, or query a mounted database through read-only tools. The API is the ingestion path for sources without a built-in connector. Agent-proposed knowledge writes require human review.

Do I need a GPU, and what should I size before a pilot?

There is no fixed GPU or VRAM requirement for the Rust application and PostgreSQL services. If model inference runs locally, size that service separately for the chosen chat and embedding models and expected concurrency. On the application side, test ingestion alongside interactive queries and budget disk for PostgreSQL, the full-text index, and the data directory.

Can we use it commercially and keep sensitive documents on-premises?

Yes. Apache-2.0 permits commercial self-hosting and redistribution subject to its terms. Self-hosting does not itself guarantee data residency: review where chat, embedding, OCR, and transcription requests go, and configure knowledge-base access and MCP token scopes before ingesting sensitive material.

When is Utopia a better fit than a conventional PostgreSQL/pgvector RAG stack?

Choose a simpler hybrid RAG stack if the task is to find relevant passages in the current corpus and cite them. Evaluate Utopia when facts change over time and users need to distinguish what applied on a given date from what the system had recorded by then. Its advantage depends on whether extraction and review produce reliable facts for your own documents.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining deeplethe/utopia? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature deeplethe/utopia on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare