semantica-agi/semantica
An open-source graph infrastructure that lets AI agents show their work, not just their answers
Semantica is an open-source Python framework that turns enterprise data into a knowledge graph and records every AI agent decision as a traceable, auditable object. Unlike vector-database RAG, which only finds things that look similar, it lets you traverse a graph to see how things are actually connected and why. It targets regulated industries like finance, healthcare, and legal where decisions need to survive an auditor's questions.
What it does
- Ingests data from many sources (files, web, databases, Databricks, Snowflake, etc.), builds it into a knowledge graph, and automatically extracts entities, deduplicates them, and flags conflicting facts instead of silently overwriting them
- Records every AI agent decision as a graph node via record_decision(), links decisions with causal relationships, and lets you replay the full history with functions like trace_decision_chain()
- Ships deterministic reasoning engines (Rete, Datalog, SPARQL) that work without any LLM, so the inference logic is rule-based and explainable rather than a black box
- Attaches W3C PROV-O provenance to every fact and can export audit trails as JSON, CSV, or RDF in formats accepted for regulator submission
- Reports a 6,000x speedup in node search on a 118,000-node benchmark graph compared to its prior version
Why it matters
As AI agents start making consequential decisions like loan approvals or medication checks, failing to explain why a decision was made becomes a compliance liability, not just an inconvenience. This project doesn't expose what happens inside the LLM itself, but it does make everything around it — the input data, the decision, and its provenance — traceable.
Terms in this repo
- Knowledge Graph · a data structure representing entities and their relationships as nodes and edges
- W3C PROV-O · a web standard for recording where data came from and how it was produced
- SHACL · a W3C standard for validating that graph data follows defined rules
- RDF/SPARQL · a standard way to store data as subject-predicate-object triples and query them
- Rete network · a rule-matching algorithm designed to efficiently evaluate many rules at once
Repository description (English)
Graph-Native Infrastructure for Context and Accountable AI Systems
Open on GitHubTrending repos
- cathrynlavery/diagram-designA skill that makes AI coding tools draw magazine-quality diagrams instead of generic rounded boxes
- public-apis/public-apisA giant crowd-curated directory of free APIs for developers
- cactus-compute/needleA 14MB AI model small enough to run tool-calling on a phone or watch, without internet
- unslothai/unslothA desktop app that lets you run and train AI models on your own computer, no coding required
- macro-inc/macroAn all-in-one workspace where email, chat, docs, tasks, and CRM are cross-linked and share one AI memory
- harry0703/MoneyPrinterTurboAn open-source tool that turns a single topic or keyword into a finished short video, complete with script, footage, subtitles, and music
- basecamp/omarchyA ready-made, opinionated Linux setup built by DHH
- mattpocock/skillsA pack of reusable prompt playbooks that keep AI coding agents like Claude Code from going off the rails
Latest from METAL LAB
- Apple Keeps 2027 Target for Camera AirPods, Qwen3.8-27B Makes 80 Tool Calls Locally
- Binance allows AI agents to trade automatically, limits left up to users
- Meta AI Mac App Now Pulls in Instagram, Facebook, and Ad Accounts
- OpenAI patches Codex file-deletion bug caused by temp-folder cleanup command
- NVIDIA's 300 Verified Skills Lift Correctness by 41 Points