AnamDB
The AI-Native Neurosymbolic Database Engine
๐ Official Documentation & Guide
AnamDB is a vertical-agnostic, neurosymbolic database engine built in Rust. It natively integrates probabilistic neural perception with deterministic symbolic reasoning into a unified architecture โ from a single-node kernel to a distributed multi-agent reasoning plane.
Unlike traditional vector databases that rely on semantic similarity or bolt-on LLMs, AnamDB treats Models as First-Class Citizens and Logic as a Verifiable Blueprint.
Why AnamDB?
| Capability | AnamDB | Vector DBs | SQL + ML | LLM Pipelines |
|---|---|---|---|---|
| Explainability | Semiring provenance โ every result traced to source | Similarity score only | No lineage | Black box |
| Safety | Datalog guardrails block hallucinations at kernel level | None | Post-hoc validation | Prompt engineering |
| Optimization | Pareto frontier (latency ร accuracy ร cost) | Latency only | Latency only | Token cost only |
| Hardware | Metal / CUDA / NPU heterogeneous dispatch | CPU only | CPU + external GPU | API calls |
| Models | AI-Tables โ first-class model lifecycle management | External | External endpoints | Hardcoded |
| Human-in-Loop | Semantic anomaly detection with interactive triage | Silent failures | Error logs | Chat-based retry |
| Distribution | Network-aware task routing + global lineage | Sharding only | Federated queries | N/A |
Tech Stack
| Layer | Component | Technology |
|---|---|---|
| Kernel | Async runtime | Rust 2024 + tokio |
| Query Engine | Optimizer + execution | Apache DataFusion (extended) |
| Logic | Differentiable Datalog | scallop-core |
| Models | AI-Tables + FAO registry | ONNX Runtime |
| Storage | Columnar + vector | Lance 2.2 (Arrow-backed) |
| SDK | Logic Packs + Explainer | JSON-based bundles |
| Distribution | Task routing + BCNF catalog | Multi-agent cluster |
Quick Start
1. One-Liner Install
If you have Rust installed, you can install the AnamDB CLI and server in seconds:
cargo install --git https://github.com/jam5991/anam anam-cli
2. The "3-Minute Wow"
Run the AnamDB interactive REPL:
anam
Once inside, download a community model, load some data, and run a neurosymbolic SQL query:
-- 1. Download the community financial compliance pack anam> .hub install anamdb/financial-compliance@1.0.0 -- 2. Ingest a sample dataset (100k rows) anam> .ingest demo/data/transactions_large.csv demo/data/transactions_large.lance anam> .load demo/data/transactions_large.lance txns -- 3. Run a neurosymbolic query with Datalog-style constraints anam> SELECT region, COUNT(1) AS count, ROUND(AVG(fraud_prob), 4) AS avg_fraud FROM txns WHERE fraud_prob > 0.90 AND amount > 10000 GROUP BY region ORDER BY avg_fraud DESC; -- 4. See exactly WHY the engine made those decisions anam> .explain
Community Hub
AnamDB includes a built-in package manager for models and logic:
# Search for community logic packs inside the REPL anam> .hub search fraud # Install the financial compliance pack anam> .hub install anamdb/financial-compliance@1.0.0
Interactive Session
anam> .ingest demo/data/transactions_large.csv demo/data/transactions_large.lance
โ Ingested 100,000 rows
anam> .load demo/data/transactions_large.lance txns
Registered table 'txns'
anam> .model load demo/models/fraud_detector.onnx fraud_detector 3 5.0 0.95
โ Loaded ONNX model 'fraud_detector'
anam> .logic high_risk "fraud_prob > 0.90 AND amount > 10000"
โ Registered rule 'high_risk'
anam> SELECT region, COUNT(1) AS count, ROUND(AVG(fraud_prob), 4) AS avg_fraud
FROM txns WHERE fraud_prob > 0.90 AND amount > 10000
GROUP BY region ORDER BY avg_fraud DESC;
+--------+-------+-----------+
| region | count | avg_fraud |
+--------+-------+-----------+
| APAC | 5321 | 0.7233 |
| EU | 36033 | 0.1374 |
| US | 48018 | 0.0800 |
+--------+-------+-----------+
anam> .explain
โโโ AnamDB Reasoning Trace โโโ
Provenance: Polynomial (full lineage tracking)
Rules: high_risk โ fraud_prob > 0.90 AND amount > 10000
Pareto Frontier: fraud_fast (0.050ms / 75%) โ
fraud_detector (0.500ms / 95%)
Rust SDK
use anamdb::sdk::LogicPack; use anamdb::core::session::Session; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let session = Session::new().await?; // Load a domain-specific Logic Pack (rules + models in one JSON) let pack = LogicPack::from_file("demo/packs/financial_compliance.json")?; session.load_logic_pack(&pack)?; // Query with automatic Pareto optimization let batches = session.query("SELECT * FROM HighRisk").await?; // Explain results with provenance tracing let explanation = session.explain_query(&batches, ExplainLevel::Coarse)?; println!("{}", explanation.display()); Ok(()) }
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AnamDB v1.0 Coordinator โ
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ BCNF Policy โ โ Distributed โ โ Global Lineage โ โ
โ โ Catalog โ โ Optimizer โ โ Tracer โ โ
โ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Task Router โ โ
โ โ Perception โ Edge | Symbolic โ Core | Mixed โ Hybrid โ
โ โโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ โ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโผโโโโโโโ โโโโโโโโผโโโโโโโ โโโโโโโโโโโโผโโโโโโโ
โ Edge Node โ โ Core Node โ โ Hybrid Node โ
โ NPU + 4GB โ โ 64GB RAM โ โ GPU + 32GB โ
โ โ โ โ โ โ
โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโ โ
โ โ 5-Stage โ โ โ โ 5-Stage โ โ โ โ 5-Stage โ โ
โ โPipeline โ โ โ โPipeline โ โ โ โ Pipeline โ โ
โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ
Test Suite
$ cargo test
test result: ok. 38 passed; 0 failed; 0 ignored
License
AnamDB is licensed under the Business Source License 1.1 (BSL).
It is completely free to use for development, evaluation, and startups with under $1M in annual revenue. The license automatically converts to Apache 2.0 after 4 years from each release. See LICENSE for details.
Every other database stores data. AnamDB reasons about it.






















