尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Extracts structured data from any business document with per-field confidence scores, governance validation, and a full audit trail — without storing the document. Supports local AI via Ollama.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Extracts structured data from any business document — with per-field confidence scores, governance validation, and a full audit trail — without storing the document.
Covers the Orchestrate & Model phases of the DOME method. Part of the Dome portfolio. For cross-cutting Dome context see dome-docs.
Upload a PDF, image, or spreadsheet and the tool:查看完整 README ↗Extracts structured data from any business document — with per-field confidence scores, governance validation, and a full audit trail — without storing the document.
Covers the Orchestrate & Model phases of the DOME method. Part of the Dome portfolio. For cross-cutting Dome context see dome-docs.
Upload a PDF, image, or spreadsheet and the tool:
The key differentiator within the Dome portfolio: this tool is designed to run with a locally deployed AI (Ollama), meaning no document content ever leaves the client's infrastructure. Cloud (Claude API) and Azure OpenAI modes are also supported via a provider switch.
| Layer | Status |
|---|---|
| Backend (FastAPI) | Complete |
| Frontend (Next.js) | Complete |
| Claude provider | Working |
| Ollama provider | Stubbed — in progress |
| Azure OpenAI provider | Stubbed |
Extraction quality and the governance rules engine are measured by an auditable, four-layer
evaluation harness in backend/eval/ — see EVAL.md for the full
methodology and a sample report.
eval_judgment event.cd backend
make eval # live: re-run the model + validated judge → eval_report.{json,md}
make eval-score # offline: score the committed recordings (no network)
CI runs the deterministic layers against recorded outputs and never calls a live model.
# Clone
git clone https://github.com/Dome-Layer/dome-document-intelligence.git
cd dome-document-intelligence
# Backend
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Environment
cp .env.example .env
# Edit .env with your values — see Environment variables below
# Backend (from backend/)
uvicorn app.main:app --reload --port 8000
# Frontend (from frontend/)
npm install
npm run dev
Backend API: http://localhost:8000. Health check: GET /api/health.
Frontend: http://localhost:3000.
Create backend/.env from .env.example. Required variables:
# LLM — choose one mode
LLM_PROVIDER=claude # claude | azure_openai | ollama
# Claude (cloud demo)
ANTHROPIC_API_KEY=sk-ant-...
CLAUDE_MODEL=claude-sonnet-4-6 # optional — override the Claude model
# Azure OpenAI (client tenant — not yet implemented)
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_KEY=
AZURE_OPENAI_DEPLOYMENT=
# Ollama (local / air-gapped — not yet implemented)
OLLAMA_URL=http://localhost:11434
# Supabase
SUPABASE_URL=
SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# App
ENVIRONMENT=development # development | production
CORS_ORIGINS=http://localhost:3000
MAX_FILE_SIZE_MB=20
Never commit real secrets. backend/.env is gitignored; .env.example is not.
| Method | Path | Description |
|---|---|---|
POST | /api/extract | Upload a document and run extraction |
GET | /api/rules | List governance rules for the authenticated user |
PATCH | /api/rules/{rule_id} | Toggle a rule enabled/disabled |
GET | /api/audit | Paginated governance event log |
GET | /api/audit/{event_id} | Single audit event detail |
GET | /api/health | Health check |
All endpoints except /api/health require a Supabase bearer token. Authentication uses Supabase magic link, triggered from the DOME website login page.
curl -X POST http://localhost:8000/api/extract \
-H "Authorization: Bearer <supabase-token>" \
-F "[email protected]"
Run the canonical DOME governance schema — dome-docs/templates/governance_schema.sql — in your Supabase SQL editor to create the required tables (governance_rules, governance_events) and indexes. For in-place upgrades to an existing deployment, apply the numbered files in dome-docs/migrations/. Governance rules for each user are seeded automatically on first GET /api/rules.
Azure OpenAI provider not yet implemented. See TOOL_CONTEXT.md for planned architecture.
Ollama provider not yet implemented. Target models: Llama 3.2 Vision, Qwen2-VL. See TOOL_CONTEXT.md for planned architecture.
dome-document-intelligence/
├── README.md This file
├── EVAL.md Evaluation methodology + sample report
├── LICENSE
├── SECURITY.md
├── backend/ FastAPI service
│ ├── Makefile eval / eval-score / test / lint targets
│ ├── eval/ Evaluation harness (golden set, scorer, calibration, judge)
│ ├── app/
│ │ ├── main.py App entry point, lifespan, CORS
│ │ ├── api/ Route handlers (extract, rules, audit)
│ │ ├── core/ Config, DB client, logging
│ │ ├── models/ Pydantic schemas
│ │ ├── providers/ LLM provider implementations
│ │ └── services/ Ingest, extraction, validation, governance
│ ├── supabase_schema.sql Pointer stub — canonical schema lives in dome-docs/templates/
│ ├── Dockerfile
│ ├── railway.toml
│ └── requirements.txt
└── frontend/ Next.js application
├── app/ Pages (upload, result, rules, audit)
├── components/ UI components (upload, result, layout, auth)
├── context/ Auth context
├── lib/ API client, auth helpers, types
└── styles/