Aleph Hackathon · BUIDL
AI agent that audits agro-industrial batch traceability locally, detecting document inconsistencies without cloud dependency.
About the project
TraceOn is an on-device, zero-cloud cold-chain compliance and release auditor for agro-industrial exports. It combines a local 3B Small Language Model (SLM) via QVAC with deterministic Python tools and a SHA-256 cryptographic hash-chain ledger to audit batches in under 2 seconds with 100% data privacy.
---
The problem
Agro-export packing plants (e.g., avocados, blueberries, grapes) lose millions due to manual, slow (20–40 min/batch) release verification. Cloud-based LLMs cannot be used due to spotty packing plant connectivity, high recurring API costs, and strict compliance confidentiality concerns.
---
Our resolution
A 100% on-device AI agent architecture. The SLM handles natural language and document extraction with autonomous self-healing Pydantic retries, while deterministic Python tools calculate thermal physics (MKT, degree-minutes) and seal an immutable audit ledger—guaranteeing 0 KB of external network traffic.
---
What we built
RETRY_SUFFIX) for on-device autocorrection.---
APPROVED, QUARANTINE, REJECTED), sealed into the hash-chain ledger.---
Where the inference happens (permalinks)
---
| Component | Specification |
|---|---|
| Primary SLM | Qwen/Qwen2.5-3B-Instruct |
| Quantization | Q4_K_M (4-bit integer weights, ~2.5 GB disk footprint) |
| OCR Pipeline | qvac-ocr local vision pipeline (Base64 multimodal) |
| Alternative Drop-ins | Llama-3.2-3B-Instruct (Q4), Phi-3.5-mini-instruct (Q4) |
| Host Hardware | Desktop PC · Intel Core i5-11400F (6C/12T @ 2.60 GHz – 4.40 GHz) |
| GPU / Graphics | AMD Radeon RX 7600 (8 GB GDDR6) |
| Memory (RAM) | 16 GB DDR4 RAM (TraceOn peak usage: ~2.8 GB RAM) |
| Inference Latency | TTFT: ~120 ms | Extraction (P50): 1,602 ms |
| Network Footprint | 0 KB internet traffic (strict 127.0.0.1 loopback invariant) |
---
---
# 1. Initial setup cd backend && make setup cd ../frontend && pnpm install # 2. Run backend cd backend && make dev # 3. Run frontend cd frontend && pnpm dev