Przejdź do treści
Biblioteka skilli
AI i agenci · Testowanie

evaluate-document-understanding-v2

/evaluate-document-understanding-v2

Ocenia Document Understanding V2: dokładność klasyfikacji, jakość ekstrakcji układu, trafność porównań między dokumentami, routing przepływów i wykrywanie PII.

Repozytorium
frootai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Ocenia Document Understanding V2: dokładność klasyfikacji, jakość ekstrakcji układu, trafność porównań między dokumentami, routing przepływów i wykrywanie PII.

Oryginalny opis (EN)

Evaluate Document Understanding V2 — measure classification accuracy, layout extraction quality, cross-doc comparison accuracy, workflow routing, PII detection. Use when: evaluate, audit doc processing.

Jak działa

  1. When to Use
  2. Document Understanding Metrics & Targets
  3. Step 1: Test Auto-Classification
  4. Step 2: Evaluate Layout Extraction
  5. Step 3: Test Cross-Doc Comparison
  6. Step 4: Test Workflow Routing
  7. Step 5: Generate Report
  8. Evaluation Cadence
  9. Common Failure Patterns
  10. CI/CD Quality Gates
Sekcje z nagłówków SKILL.md, w oryginale · 104 linii, 667 słów
Podgląd SKILL.md
---
name: evaluate-document-understanding-v2
description: "Evaluate Document Understanding V2 — measure classification accuracy, layout extraction quality, cross-doc comparison accuracy, workflow routing, PII detection. Use when: evaluate, audit doc processing."
---

# Evaluate Document Understanding V2

## When to Use
- Validate auto-classification accuracy across document types
- Measure layout-aware extraction quality (sections, tables preserved)
- Test cross-document comparison (changes detected correctly)
- Verify workflow routing (right docs to right destination)
- Gate deployments with document understanding thresholds

## Document Understanding Metrics & Targets

| Metric | Target | How to Measure |
|--------|--------|----------------|
| Classification accuracy | ≥ 92% | Correct type / total docs |
| Layout extraction F1 | ≥ 88% | Section/table structure preserved |
| Cross-doc change detection | ≥ 85% | Changes found / actual changes |
| Workflow routing accuracy | ≥ 95% | Correct destination / total routed |
| Field extraction accuracy | ≥ 90% | Extracted vs ground truth fields |
| PII detection recall | ≥ 99% | PII found / actual PII |
| Processing time per doc | < 15 seconds | End-to-end timing |
| Human review rate | < 10% | Low-confidence docs sent to human |

## Step 1: Test Auto-Classification
```json
{"doc": "samples/invoice-01.pdf", "expected_type": "invoice", "confidence_min": 0.90}
{"doc": "samples/contract-nda.pdf", "expected_type": "contract", "confidence_min": 0.85}
{"doc": "samples/quarterly-report.pdf", "expected_type": "report", "confidence_min": 0.85}
{"doc": "samples/handwritten-letter.pdf", "expected_type": "letter", "confidence_min": 0.80}
```
Minimum: 50 documents across all supported categories.

## Step 2: Evaluate Layout Extraction
- Submit documents with complex layouts (multi-column, nested tables)
- Verify: sections extracted in correct order
- Verify: tables preserve row/column structure (including merged cells)
- Verify: headers/footers separated from body content

## Step 3: Test Cross-Doc Comparison
```json
{"doc_v1": "contract-v1.pdf", "doc_v2": "contract-v2.pdf",
 "expected_changes": [{"field": "payment_terms", "from": "Net 30", "to": "Net 60"},
                      {"field": "effective_date", "from": "2026-01-01", "to": "2026-04-01"}]}
```
- Compare: detected changes vs actual changes
- Verify: additions, modifications, and deletions all detected
- Risk assessment: does severity match (payment terms change = high risk)

## Step 4: Test Workflow Routing
- Submit 30 documents → verify each routes to correct destination
- Invoices → accounting system
- Contracts → legal review queue
- Reports → stakeholder distribution list

## Step 5: Generate Report
```bash
python evaluation/eval.py --all --output evaluation/doc-v2-report.json --ci-gate
```

### Quality Gate Decision
| Result | Action |
|--------|--------|
| All PASS | Deploy document workflow |
| Classification < 85% | Add more training examples per doc type |
| Layout broken | Switch from Read to Layout model |
| Comparison misses changes | Improve field normalization |
| PII missed | BLOCKER — fix PII scanner |

## Evaluation Cadence
- **Pre-deployment**: Full classification + layout + comparison suite
- **Weekly**: Classification accuracy on production documents
- **Monthly**: Cross-doc comparison accuracy check
- **On new doc type**: Add classification training + evaluation set

## Common Failure Patterns

| Symptom | Root Cause | Fix |
|---------|-----------|-----|
| Invoice classified as report | Both have numbers and tables | Add invoice-specific features (due date, vendor) |
| Layout merges two columns | Complex multi-column page | Use Layout model (not Read) |
| Comparison misses renumbered clauses | Clause numbers changed | Compare by content, not by position |
| Workflow routes to wrong queue | Classification error cascades | Add confidence check at routing step |
| Slow on large docs (50+ pages) | Sequential page processing | Parallelize per-page extraction |
| PII in table headers missed | Only scanning cell content | Include header row in PII scan |

## CI/CD Quality Gates
```yaml
- name: Classification Gate
  run: python evaluation/eval.py --metrics classification --ci-gate --threshold 0.92
- name: Layout Gate
  run: python evaluation/eval.py --metrics layout_f1 --ci-gate --threshold 0.88
- name: Comparison Gate
  run: python evaluation/eval.py --metrics comparison --ci-gate --threshold 0.85
```

## Play 06 vs 38 Decision Guide
| Need | Use Play 06 | Use Play 38 |
|------|-----------|-------------|
| Simple OCR extraction | ✅ | Overkill |
| Auto-classify doc type | ❌ | ✅ |
| Cross-doc comparison | ❌ | ✅ |
| Layout-preserved extraction | ❌ | ✅ |
| Document workflow automation | ❌ | ✅ |
Pliki w paczce (3)
  • SKILL.lean.md 5 KB
  • SKILL.md 5 KB
  • agents/openai.yaml 1 KB

Wersje

W bazie nie ma innych skilli o nazwie evaluate-document-understanding-v2.

Migawka bazy z 13.11.2026 · wersja paczki 40aded8c0d61 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100deploy-document-understanding-v2
    Wdraża Document Understanding V2: ekstrakcję z uwzględnieniem układu, porównywanie dokumentów, automatyczną klasyfikację i automatyzację obiegu dokumentów.
  • 100tune-document-understanding-v2
    Dostraja Document Understanding V2: progi klasyfikacji, wybór modelu układu, workflow, przepustowość i koszt dokumentu.
  • 100evaluate-plugin
    Ocenia jakość pluginu, przegląda go i punktuje na prośbę o ocenę lub sprawdzenie pluginu.
  • 100cu-sdk-author-analyzer
    Eksperymentalnie tworzy i testuje własny analizator Azure AI Content Understanding dla folderu dokumentów jednego typu, od ekstrakcji układu przez schemat i walidację po testy wsadowe.
  • 100cortex-eval
    Ocenia wydajność modelu: sprawdza spadki dokładności, dryf danych i wzorce błędów.
  • 100agent-evaluation
    Ocenia agentów LLM i workflow z narzędziami: powodzenie zadań, trafność narzędzi, opóźnienia i koszt, bezpieczeństwo oraz zestawy regresji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.