ExtractInvoiceTask
PDF or image → typed invoice with vendor, line items, tax, due date, payment terms.
Ready-made AI tasks and workflows. Local runtimes — Llama.cpp and HuggingFace Transformers. No data leaves the box.
Hi, this is Sarah Chen calling from Acme Health. You can reach me at sarah.chen@acmehealth.com or on +65 9123 4567. Patient ID is PT-008341.
# local NER running …One import. One task. Local NER, typed output, zero egress. Override the backend or labels per call.
from aibackends.tasks import RedactPIITask, create_task task = create_task( RedactPIITask, backend="gliner", labels=[ "name", "email", "phone_number", ], ) note_path = Path(__file__).parent.parent / "data" / "contract.txt" result = task.run(note_path)
Run AI workloads on your own hardware. Get typed outputs. Compose tasks into workflows. Add orchestration only when you need it. The rest is detail.
First-class Llama.cpp and HuggingFace Transformers runtimes. Same typed APIs, in-process. No data leaves the box.
Every structured task returns a Pydantic model. No string parsing, no surprises, predictable contracts.
Each task is a single function with a clear input and a typed output. Compose them, swap them, call them anywhere.
Workflows add retries, steps, and batch execution — without forcing you onto a particular runner.
Your apps, scripts, data pipelines, and batch jobs all call into the same tasks and workflows. Add new consumers without rewriting the underlying extraction, classification, or redaction logic.
Each task is one function. Input → typed Pydantic output. Pass straight to any agent, or call from a script.
PDF or image → typed invoice with vendor, line items, tax, due date, payment terms.
Local NER via gliner. Nothing leaves the box.
Transcribe, redact PII, extract talk ratio, objections, buying signals, score.
Business meeting video → speaker diarisation, key decisions, action items, and talk-time ratio. Turn recorded calls into structured reports — archive to a knowledge base without leaving your infra.
Zero-shot text classification with confidence scores across all labels.
Pass any Pydantic schema. Get structured data back. Validation retries baked in.
Short, faithful summaries. No hallucinated facts. Length controllable.
Local sentence embeddings. minilm-l6, bge-small, or any sentence-transformers model.
Menu photo → items, prices, categories, allergens. SEA-ready (mixed languages).
Need help with AI in your stack?
Local infra with AIBackends, or commercial models — OpenAI, Gemini, and Claude. Reach out for a consultation.