Modules
qaechi is a set of small modules. Libraries go into your application as a dependency.
Servers run on your machines as containers or services. Pick only what your features need.
flowchart TB
subgraph app["In your application (libraries)"]
lib["qaechi-parser<br/>library"]
con["qaechi-contracts<br/>message schemas"]
end
subgraph servers["On your servers"]
api["parser API"]
w["parser workers"]
sink["qaechi-sink"]
end
subgraph infra["Infrastructure you run or buy"]
k[("Kafka")]
db[("PostgreSQL, MySQL<br/>or MongoDB")]
obs["VictoriaMetrics, Tempo,<br/>Grafana"]
end
con -. "same messages" .- api
api --> k --> w
w --> db
k --> sink --> db
api & w & sink -. "metrics, traces" .-> obs
Libraries
| Module |
Install |
Gives you |
| qaechi-parser |
pip install "qaechi-parser[parse]" |
Parse files in-process: parse_file(path, doc_type) returns values with quote and page |
| qaechi-contracts |
pip install qaechi-contracts |
Message and API models (Python) and JSON Schemas for any language. The compatibility line between modules |
| qaechi-client |
PyPI, Maven, npm |
One client for HTTP and Kafka; switch from Lite to Scale with one setting |
| qaechi-outbox |
Spring Boot starter, PyPI |
Save a business change and its parse request in one transaction |
Servers
| Module |
Command |
Runs where |
Scale out by |
| parser API |
qaechi-parser serve |
Container or service next to your apps, behind your gateway |
Replicas behind a load balancer (stateless with a database) |
| parser worker |
qaechi-parser worker --processes N |
Container on CPU nodes |
Processes per replica x replicas, up to the topic's partitions |
| qaechi-sink |
qaechi-sink run |
Container near your database |
Replicas (one consumer group) |
| batch coordinator |
qaechi-batch serve |
Container, during a run |
One per run |
Prebuilt stacks with all of these wired together: qaechi-stack.
| Extra |
Adds |
| (none) |
The engine: CSV and text, plugins |
parse |
PDF, PPTX, XLSX, HTTP sources |
llm |
LLM extraction and grading (any OpenAI-compatible endpoint, including local models) |
server |
The HTTP API |
otel |
OpenTelemetry metrics and traces |
kafka |
Queue mode: the worker and publishing from the API |
postgres, mysql, mongodb |
Shared job and result store; install the one you run |
Which modules for which feature
| I want to |
Modules |
Infrastructure |
Stack |
| Parse files inside my Python app |
qaechi-parser [parse] |
none |
Library |
| Extract any document type with an LLM, with evidence |
qaechi-parser [llm] |
An LLM endpoint (cloud or local) |
Any |
| Call the parser from Java, Node.js or anything over HTTP |
qaechi-parser [server] |
1 server |
Lite |
| See throughput, latency and evidence quality |
[otel] + dashboards |
VictoriaMetrics, Tempo, Grafana |
Lite and up |
| Keep jobs and results across restarts |
[postgres], [mysql] or [mongodb] |
Your database |
Lite and up |
| Handle high volume with many workers |
[kafka] + a database extra |
Kafka, database |
Scale |
| Get results into my database or app automatically |
qaechi-sink |
Kafka, your database or webhook |
Scale |
| Publish jobs from other services or languages |
qaechi-contracts (schemas) |
Kafka |
Scale |
| Never lose a request that belongs to a business transaction |
outbox + CDC relay |
Kafka, CDC |
Enterprise |
| Load a large archive once or nightly |
batch coordinator |
Kafka, object storage |
Batch |
| Keep documents and models inside my network |
[llm] with a local model |
GPU or CPU inference server |
Enterprise |