尚未偵測到更新。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/