Repolode
deeplethe

deeplethe/utopia

A self-hosted Rust knowledge base that builds a bitemporal knowledge graph from documents, so facts carry when they held and when the system learned them.

Open-source alternative to:NotionGlean

Stars
8,428
Forks
1,175
Open issues
72
Last commit
13 hours ago

What is it?

Utopia is a self-hosted knowledge system that ingests documents and turns them into entities and facts organized by an editable ontology. Every fact records when it held in the world and when the system came to believe it, so corrections close an older version and link to the new one instead of overwriting it. This lets users ask what was true on a given date and what the base knew at the time.

The application ships as one Rust binary backed by PostgreSQL with pgvector, with Tantivy providing full-text search and the job queue stored as a table. It combines full-text and vector retrieval with streaming answers and inline citations, and works with any OpenAI-compatible model endpoint, including local ones for air-gapped deployments. Entity resolution, a review queue for uncertain extractions, and an append-only decision ledger support human oversight.

The project also exposes an MCP server so agents such as Claude Desktop or Cursor can query knowledge bases with scoped permissions, and it can mount external SQL databases for ontology-driven querying. Reasoning over ontology axioms is available but disabled by default. The project is at v0.1, and its schema migrations only roll forward.

Key features

  • 01Ingests PDF, Office spreadsheets, Markdown, HTML and more, with scans handled by OCR or vision models.
  • 02Bitemporal graph where corrections close old facts and link them to replacements.
  • 03Hybrid full-text and vector search with streamed answers and inline citations.
  • 04MCP server for connecting agents to knowledge bases with fine-grained permissions.
  • 05Entity resolution with undoable merges and a review queue for uncertain cases.
  • 06Works with any OpenAI-compatible model endpoint, so it can run fully offline.

Use cases

  • Tracking how contract terms or amendments changed over time and answering what applied on a given date.
  • Building an audit trail of who changed which record and what the system believed at the time.
  • Giving engineering or operations agents read access to a company knowledge base over MCP.
  • Deploying a private knowledge foundation on infrastructure the organization controls.

Topics

FAQ

What is utopia?
A self-hosted Rust knowledge base that builds a bitemporal knowledge graph from documents, so facts carry when they held and when the system learned them. Utopia is a self-hosted knowledge system that ingests documents and turns them into entities and facts organized by an editable ontology. Every fact records when it held in the world and when the system came to believe it, so corrections close an older version and link to the new one instead of overwriting it. This lets users ask what was true on a given date and what the base knew at the time.
Is utopia free to use? What license does it have?
utopia is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is utopia still maintained?
Actively maintained. The last commit to utopia was on Oct 18, 2026.
What can I use utopia for?
Tracking how contract terms or amendments changed over time and answering what applied on a given date. Building an audit trail of who changed which record and what the system believed at the time. Giving engineering or operations agents read access to a company knowledge base over MCP. Deploying a private knowledge foundation on infrastructure the organization controls.
Where can I get utopia?
The source code and installation instructions are on GitHub: https://github.com/deeplethe/utopia

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects