← ALL LABS

LAB 001 / EXPERIMENT

Local LLM Transaction Classification

Testing whether small local models can reliably classify financial transactions.

STATUSACTIVEDATE2026-08-15MODETECHNICAL NOTE

01 / LAB NOTES

01 / SECTION

Question

Can a small locally running model classify transactions reliably enough for production use?

02 / SECTION

Hypothesis

A compact model should handle obvious merchant categories well, while ambiguous transfers need deterministic rules or human review.

03 / SECTION

Experiment

Compare zero-shot prompts, few-shot prompts, and a hybrid rules-plus-model pipeline on a labeled transaction set.

04 / SECTION

Result

The hybrid approach produced the clearest confidence boundary and the most actionable error set.

05 / SECTION

What I changed

Moved merchant normalization before inference and added an explicit unknown category instead of forcing a guess.

TOOLS & TECHNOLOGIES

01Python02Ollama03Qwen