context4ai/intent-router-onnx
04
Intent Router (ONNX int8)
A 7-class intent classifier for code query routing. Classifies natural language queries (English and Chinese) into structured intents for code intelligence tools.
Intents
Files
Inference
Requires ONNX Runtime. The model takes tokenized text input and outputs sentence embeddings. The classification head (model_head.json) maps embeddings to intent logits.
input text → tokenizer → ONNX model → embedding → classification head → intent + confidenceBenchmark
Evaluated on a held-out test set of 221 bilingual (Chinese + English) code queries.
Per-intent performance:
Training set: 284 samples. Test set: 221 samples.
Quantization
int8 (dynamic quantization). Total size ~559MB.
Related Project
This model is fine-tuned for C4A (Context For AI), a knowledge modeling service that indexes code repositories and business documents for developer teams and AI agents.
License
MIT
