Local AI infrastructure and a source-citing answer engine.
5Projects served
~158,000Board games genre-classified
16kMeasured context ceiling on 24 GB
27 tok/s14B model generation
Why I built it
I wanted reusable AI capabilities across my projects without forcing each application to rely on an external model provider. Cortex combines a customized open-source answer-engine fork with local inference services.
What it does
OpenAI-compatible inference lets applications retain their own prompts and context. CPU embeddings keep search available independently of GPU-heavy generation. Models are selected by workload and measured under realistic concurrency.
Engineering lessons
A timeout is not a decision: a cold model behind a 60-second proxy once made a caller reject everything. Measure under real concurrency, never extrapolate.
From the build log
The search engine that silently died
Answer quality collapsed for months. Walking the metasearch engine roster one engine at a time found CAPTCHAs, rate limits and empty results across the defaults, and the one engine still working wasn’t enabled. Turning it on restored results.
Finding the VRAM ceiling
A 32B model at 8k context used 23.9 of 24 GB, and the answer engine’s own 11,774-token system prompt didn’t fit. Stepping down to a 14B model at 8-bit and measuring context sizes set 16k as the real ceiling.