Skip to content

Legal & financial use cases

These are the workflows KAOS was built for — the same use cases the legacy Kelvin documentation covered, rebuilt fresh on the new packages. Every one has a runnable, tested example you can run in one command. They use small inline samples so they run offline; the Real data note on each points at the production data source — including the public kl3m datasets on Hugging Face.

Most reduce to three KAOS patterns: classify (typed Call → a label), extract (typed Call → a structured record), and review/answer (an agent over a corpus). That’s the point — a handful of composable primitives cover the whole domain.

flowchart LR
    doc["📄 Document"] --> classify["<b>Classify</b><br/><small>typed Call → label</small>"]
    doc --> extract["<b>Extract</b><br/><small>typed Call → record</small>"]
    doc --> review["<b>Review / Answer</b><br/><small>agent over a corpus</small>"]
    classify --> c["triage · UTBMS coding · matter tagging"]
    extract --> e["complaints · covenants · deal terms · abstraction"]
    review --> r["contract review · due diligence · research"]

    classDef p fill:#eef2ff,stroke:#6366f1,color:#1e1b4b;
    class classify,extract,review p;
Use caseWhat it doesRun
Contract → reusable templateNER-find parties/amounts/dates → swap for {{fields}} → redline (how-to)uv run examples/contract-to-template.py
Contract knowledge managementExtract sections & definitions for a clause libraryuv run examples/contract-definitions.py
Pre-execution reviewFlag unusual clauses & risks before signing (FindingsAgent)uv run examples/findings-review.py
Post-execution abstractionExtract dates, term, renewal, governing law to track obligationsuv run examples/uc-contract-abstract.py
Use caseWhat it doesRun
Litigation triageClassify court documents by type to route themuv run examples/uc-litigation-triage.py
Matter data taggingTag matters with practice area for reportinguv run examples/uc-matter-tagging.py
Complaint & settlement databaseExtract parties / violation / penalty into a databaseuv run examples/uc-complaint-extract.py
Matter / RFP pricingEstimate cost & staffing from a matter’s scopeuv run examples/uc-matter-pricing.py
Conflict checkingFuzzy-match new parties against the client list (how-to)uv run examples/conflict-check.py
Due diligenceAnswer questions over a document corpus with citations (research)uv run examples/research-agent.py
Use caseWhat it doesRun
SEC EDGAR / IPO analysisExtract offering terms from an S-1 into a deal databaseuv run examples/uc-s1-deal-terms.py
Commercial lending analysisExtract financial covenants from a credit agreementuv run examples/uc-credit-covenants.py
Use caseWhat it doesRun
Post-bill invoice analyticsRoll up fees by matter/role/UTBMS code (how-to)uv run examples/analyze-billing.py
Pre-bill UTBMS codingAssign UTBMS task codes to billing narrativesuv run examples/uc-billing-utbms.py
Synthetic test dataGenerate reproducible billing data to demo/test on (how-to)uv run examples/generate-billing-data.py
Use caseWhat it doesRun
Expertise managementExtract practice areas / industries / languages from profilesuv run examples/uc-expertise-extract.py
Regulatory monitoringFilter & summarize Federal Register notices by relevanceuv run examples/uc-regulatory-monitoring.py