github.com/gunawanwijaya/apprentice
7 Modules + Shared LGTM Infra | MIT
Production-oriented monorepo pairing isolated Python (uv) training and evaluation pipelines with low-latency Go serving and control planes, governed by SHA-256 feature_contract.json codegen, cross-language golden parity gates, and keyless GitHub Actions CI.
- Zero-Skew ONNX & Pure-Go ML Serving (Modules 01 to 04): Tabular LightGBM + CQR ETA intervals on 95,992 Olist orders; pure-Go PII redaction, BM25, CRF Viterbi NER, and ONNX intent triage; pure-Go WordPiece with FP32/INT8 quantized Transformer serving; and Vision/Audio CNNs with concurrent FFmpeg/
errgroupvideo demux. - LLM Gateway, Hybrid RAG & Bounded MCP Agents (Modules 05 to 07): Pure-Go SSE LLM gateway with entity-safe caching (64 microsecond hits), Groq-to-Gemini failover, and USD spend ledgers; multi-tenant Hybrid RAG (BM25 +
pgvectorHNSW RRF, Recall@5 0.9926) with abstention, citation checks, and RustFS; and a Streamable HTTP MCP server with bounded ReAct loops, session-principal security gates, HITL caps, and CoT binary judge calibration (Cohen's kappa 0.92). - Unified Observability Stack (
infra/): Shared Go OpenTelemetry SDK wiring traces, histograms, and structured JSON logs across all 7 services into Dockerizedpgvector:pg19, RustFS, and Grafana LGTM (8 provisioned dashboards).