GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chaw1/datakeel: Local-first workbench for auditable AI datasets, traceable business metrics, and human-approved MCP agents.

BranchesTags
Open more actions menu

Latest commit

 

History

929 Commits
929 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
accel
accel
 
 
contracts
contracts
 
 
datakeel
datakeel
 
 
docs
docs
 
 
examples
examples
 
 
sandbox
sandbox
 
 
scripts
scripts
 
 
tests
tests
 
 
typings
typings
 
 
web
web
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.importlinter
.importlinter
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.python-version
.python-version
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CITATION.cff
CITATION.cff
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
README.zh.md
README.zh.md
 
 
SECURITY.md
SECURITY.md
 
 
SUPPORT.md
SUPPORT.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
WE-COMMANDS.md
WE-COMMANDS.md
 
 
compose.yaml
compose.yaml
 
 
pyproject.toml
pyproject.toml
 
 
server.json
server.json
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Datakeel

Verifiable Data & Controlled Action Plane

A local-first workspace to deliver verifiable datasets, trace metrics to evidence, and operate agents with frozen plans, human approval gates and measurable evaluations.

PyPI Website Release Quality gates Python 3.12+ License Apache-2.0

简体中文 · Website · Quick start · 5-min leakage & delivery guide · Guided tour · Documentation · Changelog

Datakeel 18-second walkthrough: visual QA evidence review, traceable metric SQL, and human-approved agent actions

18-second live demo walkthrough: visual QA & evidence anchors, traceable metric SQL, and digest-bound human approval. Want a 5-minute hands-on test? Try Detect train/test duplicate images & verify delivery offline with the downloadable 3-image sample.

Quick start

Install uv and launch the offline demo in one command (or run uv sync --locked && uv run datakeel demo from a source checkout). The demo starts the API and worker, serves the bundled web UI, and seeds generated samples in local SQLite. Model calls use the bundled offline provider.

uvx datakeel demo
# Web UI:   http://127.0.0.1:8765
# API docs: http://127.0.0.1:8765/api/docs
# Ctrl+C stops both processes.

Start with Evidence to inspect an image alongside its caption and annotations. In Ask data, try “What was retail revenue in East China last quarter?” with the demo reference date 2026-10-01. The guided tour uses the same generated samples. Guided tour

Run the demo and queries from the command line
uv run datakeel demo --once
uv run datakeel ask '上个季度华东区零售额是多少' --reference-instant 2026-10-01T00:00:00Z
uv run datakeel ask '退货率为什么上升' --reference-instant 2026-10-01T00:00:00Z
uv run datakeel ask '上个季度营业额是多少' --reference-instant 2026-10-01T00:00:00Z
uv run datakeel export --format openlineage --output events.json
uv run datakeel export --format croissant --output croissant.json

The demo includes four generated collections for file processing, paired image evidence, enterprise metrics, and knowledge graphs. The evidence collection has 1,000 sample images with known annotation conflicts, missing sidecars, and corrupted files.

Three lanes, one workspace

Start in Focused view with 11 core modules. Choose All modules to show every sidebar entry; opening an advanced page keeps its entry visible even in Focused view. ⌘K / Ctrl+K finds objects and modules in either view, and existing deep links stay available.

Lane Start here Expand when needed
Data Delivery & QA Workbench, Data library, Evidence, Data quality Labeling, Quality rules, Catalog, Data assets, Standards, Custom operators
Metrics & Knowledge Ask data, Knowledge graph, Ontology Follow metric answers and graph assertions back to their sources
Agents, Workflows & Ops Agent, Approvals, Workflows, Traces Run records, Memory

v0.28 showcase

These capabilities are in this source checkout; package versions remain 0.27.1 until the integrated release.

  • MCP 2.0 Gateway. Connect over streamable-http (or stdio / legacy SSE), narrow tools with --profile and --dataset, read domain resources and governance prompts, then observe human decisions with read-only plan status. MCP prepares action plans; approval and execution stay in the Web UI or CLI. MCP guide
  • Zero-friction local & CI. Use an Ollama-compatible loopback endpoint without an API key, or audit your own dataset in a temporary local workspace without starting the application. Failed quality/leakage gates return a nonzero exit code. Local models
  • Agent Ops & evaluation flywheel. The Traces page combines operational KPIs, cache/token/cost records and Eval Diff across saved runs. Benchmark planning with eval-intents, export sanitized session drafts with agent export-golden, review their fixture bindings, then replay and compare. Evaluation guide
  • Adapt the workflow. HITL rejection replanning carries the human reason into a fresh plan; Page-Aware Copilot suggests next steps for the current page/object. Provider prompt caching, declarative $DATAKEEL_HOME/{agents,workflows}/*.yaml overlays and read-only parallel_tools keep extensions measurable and governed. Agent guide · Workflows
# From this source checkout: bring your own dataset into a CI quality gate.
uv run datakeel audit ./my-dataset --fail-on-leakage --fail-under 80
# Offline planner benchmark; no API key or live model needed.
uv run datakeel eval-intents --json

With Ollama serving the installed llama3.2 model and an initialized Datakeel home:

DATAKEEL_OPENAI_BASE_URL=http://127.0.0.1:11434/v1 uv run datakeel agent chat "List my datasets"

Loopback inference defaults to $0 in model accounting, excluding hardware and energy; custom local prices are configurable. The model must support the chat/tool protocol used by your workflow.

What you can do

Workflow What you can verify Guide
Detect train/test image leakage & verify delivery Download the 3-image sample, catch exact/dHash duplicates across splits, save a 2-image corrected version, and verify offline with datakeel reconcile. 5-min leakage & delivery guide
Review samples Follow a candidate issue to a caption, annotation, image, or source event. Evidence distinguishes present, absent, and unknown. Evidence review
Prepare training data Compare immutable versions, inspect split leakage, and export training sets in COCO, YOLO, Hugging Face, or JSONL formats as applicable. Training sets
Deliver a dataset Sign a frozen release plan, download a reproducible package, and verify its manifest with datakeel reconcile. Dataset releases
Explain a business metric Inspect its definition version, source fields, parameterized SQL, and time range. Ask for a breakdown or follow the metric to its lineage. Ask data
Review an Agent proposal Inspect the affected objects, outbound scope, and cost. The Web UI and CLI handle approval and execution. Controlled actions · MCP

The bilingual UI includes a keyboard-driven evidence review panel, global search with ⌘K / Ctrl+K, and a contextual Copilot with ⌘J / Ctrl+J. UI design

For labeling production, audio and video processing, LLM dataset checks, knowledge graphs, and semantic catalog imports, use the documentation hub or browse the documentation site.

Where Datakeel fits

Datakeel complements data warehouses and training frameworks by uniting three workflows that are usually stitched across separate tools:

Dimension Datakeel Typical point-tool stack
Deployment footprint Local-first SQLite + loopback Web UI in two commands; scales to PostgreSQL + S3. Separate clusters for data catalogs or hosted SaaS accounts for QA and labeling.
Visual QA & split leakage Three-state evidence (present / absent / unknown), visual review, and cross-split dHash / SimHash / exact leakage checks. Split across separate inspection tools (FiftyOne), labeling UIs (Label Studio), and ad-hoc scripts.
Reproducible dataset delivery Digest-signed release plans, immutable SHA-256 manifests, and offline datakeel reconcile verification. File version trackers (DVC) hash blobs without review sign-off or leakage proofs.
Traceable metric Q&A Registered metric definitions, parameterized SQL, lineage links, and explicit clarification/refusal on ambiguity. Free-form Text-to-SQL assistants generate unreviewed queries with no metric version binding.
Agent & MCP write safety MCP 2.0 read/prepare gateway over stdio, Streamable HTTP or SSE; irreversible or outbound actions require human sign-off. Generic database MCP connectors execute writes directly or lack digest-bound approval sheets.
Frequently asked questions
  • Do I need cloud API keys or a database server to try Datakeel? No. uv run datakeel demo runs locally on SQLite with an offline deterministic provider and 1,000 generated image, metric, and knowledge-graph samples.
  • How does Datakeel catch train/test split leakage? It computes exact hashes, 64-bit perceptual dHash, SimHash text fingerprints, and group keys across partitions, shows side-by-side matches for review, and records the checked proof inside the signed release manifest.
  • Can an MCP client delete data or change metrics autonomously? No. Datakeel's MCP server never exposes approval or execution tools; humans review and sign the frozen plan digest in the Web UI or CLI.
  • Can a small team share one installation? Yes. Switch to PostgreSQL and S3-compatible object storage behind Caddy or nginx + oauth2-proxy using the deployment guide.

How it fits together

Datakeel architecture showing API and worker entry points, domain contracts, and storage

Datakeel runs an API and a fenced worker over SQLite or PostgreSQL and local or S3-compatible storage. File versions have immutable SHA-256 manifests. Lineage rebuilds from append-only events, and external or irreversible actions require a person to approve the exact prepared plan. Architecture · Persistence schema · API reference

MCP and models

The MCP 2.0 gateway exposes audited reads and action-plan preparation over local stdio, loopback Streamable HTTP (/mcp) or legacy SSE. Use the same DATAKEEL_HOME as the Web UI to work on the same datasets. Controlled actions

MCP client configurations

For a local stdio client such as Claude Desktop (claude_desktop_config.json) or Cursor (.cursor/mcp.json), replace the absolute paths:

{
  "mcpServers": {
    "datakeel": {
      "command": "/absolute/path/to/uv",
      "args": [
        "--directory",
        "/absolute/path/to/datakeel",
        "run",
        "datakeel",
        "mcp"
      ],
      "env": {
        "DATAKEEL_HOME": "/absolute/path/to/datakeel/.datakeel"
      }
    }
  }
}

For the recommended gateway, run uv run datakeel mcp --transport streamable-http --profile delivery and connect to http://127.0.0.1:8766/mcp. Domain resources, governance prompts and read-only plan/workflow status share the selected scope. MCP guide

For a legacy loopback SSE server, run uv run datakeel mcp --transport sse --host 127.0.0.1 --port 8766:

{
  "mcpServers": {
    "datakeel": {
      "url": "http://127.0.0.1:8766/sse"
    }
  }
}

Optional real providers use DATAKEEL_OPENAI_API_KEY or DATAKEEL_ANTHROPIC_API_KEY, with optional DATAKEEL_OPENAI_BASE_URL or DATAKEEL_ANTHROPIC_BASE_URL. Keep secrets outside the repository and register provider model prices in the price catalog.

Export sanitized OTLP/HTTP spans to a collector, Phoenix, or Langfuse with uv run datakeel export-traces [--conversation-id <id>]. Trace export reference

Deploy and contribute

GitHub Releases carry the wheel, locked requirements, license notices, and SHA-256 checksums. For a shared installation, use the small-team deployment guide for the authenticated reverse proxy and PostgreSQL options. Release files · Deployment guide · SQLite maintenance

Run separate processes or build local artifacts
uv run datakeel db upgrade
uv run datakeel api --port 8765
# In a second terminal with the same storage and database environment:
uv run datakeel worker

A source build uses Python 3.12, uv, Node.js 22, and Rust 1.96. The build commands produce local artifacts.

make build-wheel
make build-image
docker run --rm -p 127.0.0.1:8765:8765 -v datakeel-data:/data datakeel:local

After building the image, Docker Compose can run the API, worker, migration job, and PostgreSQL on a loopback-only binding.

docker compose up -d
docker compose run --rm api demo --once
Run the repository quality gates
uv sync --locked
(cd web && npm ci)
uv run pre-commit install
make check
uv run python scripts/check_readme.py
bash scripts/ci-check.sh

CI runs gates, tests, and mutation checks on SQLite and PostgreSQL. For test inputs and guardrails, see Verification and Code standards.

Contributing · Support · Private security reports · Code of conduct · Citation

Datakeel is licensed under Apache-2.0. Dependency and bundled font terms are recorded in Third-party notices and Frontend notices.

About

Local-first workbench for auditable AI datasets, traceable business metrics, and human-approved MCP agents.

datakeel.jiawis.com/

Topics

ai-datasetsdata-catalogdata-governancedata-labelingdata-lineagedata-qualitydataset-qualitydataset-versioningfastapihuman-in-the-looplocal-firstmcpmetricsmultimodalopenlineagepythonreactsemantic-layertext-to-sqlvisual-qa

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

391 stars

Watchers

4 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.