jamie8johnson commited on
Commit
d1ab4b3
·
verified ·
1 Parent(s): ffc3515

Update card with v3.v2 production-eval results + un-retirement note

Browse files
Files changed (1) hide show
  1. README.md +25 -5
README.md CHANGED
@@ -20,7 +20,26 @@ datasets:
20
 
21
  A fine-tuned code search embedding model based on **intfloat/e5-base-v2** (110M parameters, 768 dimensions). Trained with call-graph false-negative filtering on 200K balanced pairs across 9 programming languages. Built for [cqs](https://github.com/jamie8johnson/cqs) — code intelligence and RAG for AI agents.
22
 
23
- ## Key Results
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  | Eval | Metric | This Model | BGE-large (335M) | BGE-large FT (335M) |
26
  |------|--------|-----------|-------------------|---------------------|
@@ -30,9 +49,7 @@ A fine-tuned code search embedding model based on **intfloat/e5-base-v2** (110M
30
  | CoIR 9-task (19 subtasks) | Overall | 52.7 | 55.7 | **57.5** |
31
  | CoIR CodeSearchNet (6 languages) | NDCG@10 | 0.615 | 0.721 | **0.779** |
32
 
33
- **Best raw R@1 of any model tested (70.9%)** — the call-graph filtered training signal produces the sharpest code-only embeddings. On the enriched pipeline (with doc comments, call graph context, file paths), ties BGE-large at 1/3 the parameter count.
34
-
35
- **Enrichment dependency:** This model is 2-3× more dependent on the cqs enrichment stack than BGE-large. Without enrichment, R@1 drops from 90.5% to 74.3% (-16.2pp). BGE-large only drops from 90.9% to 84.8% (-6.1pp). Use with cqs for best results.
36
 
37
  ## Training Details
38
 
@@ -55,6 +72,9 @@ Go, Java, JavaScript, PHP, Python, Ruby, Rust, TypeScript, C++
55
  ```bash
56
  export CQS_EMBEDDING_MODEL=v9-200k
57
  cqs index --force
 
 
 
58
  ```
59
 
60
  ### With sentence-transformers
@@ -69,4 +89,4 @@ code_emb = model.encode("passage: def validate_email(addr): ...")
69
 
70
  ## License
71
 
72
- Apache 2.0 (same as base model)
 
20
 
21
  A fine-tuned code search embedding model based on **intfloat/e5-base-v2** (110M parameters, 768 dimensions). Trained with call-graph false-negative filtering on 200K balanced pairs across 9 programming languages. Built for [cqs](https://github.com/jamie8johnson/cqs) — code intelligence and RAG for AI agents.
22
 
23
+ ## Production Eval (v3.v2 fixture, 2026-05-01)
24
+
25
+ The headline results below are from cqs's production fixture — 218 queries (109 test + 109 dev) curated from real agent telemetry and LLM-generated retrieval cases on the cqs codebase itself. This is the eval that drives default-model decisions.
26
+
27
+ | split | metric | BGE-large (1024-dim) | **v9-200k (768-dim)** | Δ |
28
+ |-------|--------|---------------------:|----------------------:|--:|
29
+ | test | R@1 | 43.1% | **45.9%** | +2.8 |
30
+ | test | R@5 | 69.7% | **70.6%** | +0.9 |
31
+ | test | R@20 | **83.5%** | 80.7% | -2.8 |
32
+ | dev | R@1 | 45.9% | 46.8% | +0.9 |
33
+ | dev | R@5 | **77.1%** | 68.8% | -8.3 |
34
+ | dev | R@20 | **86.2%** | 81.7% | -4.5 |
35
+
36
+ **v9-200k essentially ties BGE-large on test R@5 and edges it on R@1 across both splits** — at 1/3 the parameter count and 25% smaller embeddings (768 vs 1024 dim). The cost is on dev R@5/R@20 (~5–8 pp behind), where BGE-large's broader pre-training base helps on out-of-distribution queries. For latency-sensitive or memory-constrained workloads, v9-200k is the right choice.
37
+
38
+ **Decision (2026-05-01):** cqs keeps BGE-large as default for the dev R@5 hedge, but v9-200k is shipped as a first-class opt-in preset. Set `CQS_EMBEDDING_MODEL=v9-200k` or `cqs slot create v9 --model v9-200k` to use it.
39
+
40
+ ## Historical results (296q synthetic fixture)
41
+
42
+ These are from an earlier synthetic eval (296q across 7 languages, enriched chunks). They show the model's strength on cleanly-curated code-search pairs, where the call-graph training signal is most visible:
43
 
44
  | Eval | Metric | This Model | BGE-large (335M) | BGE-large FT (335M) |
45
  |------|--------|-----------|-------------------|---------------------|
 
49
  | CoIR 9-task (19 subtasks) | Overall | 52.7 | 55.7 | **57.5** |
50
  | CoIR CodeSearchNet (6 languages) | NDCG@10 | 0.615 | 0.721 | **0.779** |
51
 
52
+ **Note (2026-05-01):** an earlier evaluation against v3.v2 (2026-04-25) reported v9-200k as ~30 pp behind BGE-large and led to a "retired" verdict. That gap turned out to be ~95% fixture-side artifact — cqs's eval matcher required strict `(file, name, line_start)` to score a gold chunk, and routine code edits between the fixture's pin date and the rerun shifted ~38% of gold-chunk line numbers, making them invisible to the matcher even when search returned them. After loosening the matcher to `(file, name)` ([cqs PR #1284](https://github.com/jamie8johnson/cqs/pull/1284)), the numbers in the **Production Eval** table above are what holds. Lesson: when a benchmark drops 25 pp overnight, suspect the harness before the model.
 
 
53
 
54
  ## Training Details
55
 
 
72
  ```bash
73
  export CQS_EMBEDDING_MODEL=v9-200k
74
  cqs index --force
75
+ # or, for slot-based comparisons:
76
+ cqs slot create v9 --model v9-200k
77
+ cqs index --slot v9 --force
78
  ```
79
 
80
  ### With sentence-transformers
 
89
 
90
  ## License
91
 
92
+ Apache 2.0 (same as base model).