askmdb: fine-tuned Qwen models turn plain English into MongoDB queries, 0.8B hits 83.6% locally

AlternativeEnough352 · reddit · 2026-11-11

A developer released askmdb, a single-binary local CLI that turns natural language into MongoDB aggregate pipelines using fine-tuned Qwen models (0.8B–9B, Apache-2.0 GGUF). No Python, no server, no API keys; a deterministic C++ verifier whitelists every pipeline step, so a hidden $out inside $facet is always blocked.

Benchmarks (500 EN/ES questions, correctness = pipeline returns the same result as reference):

Key lesson: v1 plateaued at 68.6%. Grouping failures by sub-cause revealed zero $convert examples in training data (the generator quietly avoided mixed-type fields). Adding 5,000 targeted examples lifted it from 343 → 418 correct. Total cost: $14 of rented RTX 5090 (12 GPU-hours). Code MIT; author is asking for tips on sub-1B $lookup joins.

Original post →

More from coding & agent

coding & agent channel →