Zenith Logic Foundry

zlf

Zenith Logic Foundry

Forge Grounded Wisdom, Mapped To You.

解答世间万物

zlf is a WAM-backed Prolog graph database for building AI-native knowledge bases. It stores graph facts persistently, evaluates queries and rules through a single Prolog runtime, and supports retrieval over the resulting knowledge graph.

What it provides

Quick start

Build the CLI:

cargo build --release

Open a database in the Prolog REPL:

target/release/zlf repl ./zlf-db

Usage

See the usage guide for installation, configuration, REPL and Prolog examples, JSON-over-STDIO commands, HTTP endpoints, index profiles, embeddings, and operational guidance.

Architecture

CLI / HTTP server / REPL
  -> WAM Prolog runtime
  -> storage-backed facts, compiled rules, and indexes
  -> RocksDB

Development

cargo fmt --all
python3 scripts/check-rust-size.py
cargo clippy --workspace --all-targets -- -D warnings -W clippy::too_many_lines
cargo test --workspace

License

MIT OR Apache-2.0