Skip to content

Optional code-aware embeddings (jina-code v2): ripgrep plain-language 0.500 → 0.667 recall, 0.156 → 0.347 precision - #130

Merged
ParsaVictor merged 2 commits into
mainfrom
phase-j2/jina-code
Oct 1, 2026
Merged

ParsaVictor merged 2 commits into
mainfrom
phase-j2/jina-code

Conversation

@ParsaVictor

Copy link
Copy Markdown
Owner

Fuses the lexical file ranking with Jina code v2 file vectors for plain-language questions when the model is installed (neuromesh install embed jina-code, NEUROMESH_EMBED_MODEL=jina_code_v2). Fusion off→on, model loaded: ripgrep 0.500/0.156→0.667/0.347, click 0.958/0.342→0.958/0.439, this repo 0.679/0.404→0.786/0.429. MiniLM is never fused. Draft until the old sets are checked with the model loaded.

🤖 Generated with Claude Code

ParsaVictor and others added 2 commits October 1, 2026 15:06
…ranking for plain-language questions

With the model loaded, fusion off -> on: ripgrep holdout 0.500/0.156 ->
0.667/0.347, click 0.958/0.342 -> 0.958/0.439, this repo 0.679/0.404 ->
0.786/0.429. Without the model nothing changes; MiniLM is never fused
(it lowered every set: ripgrep 0.375, this repo 0.607).

- EmbeddingModelId::JinaCodeV2 (768-d), loaded from plain files
  (fastembed's hf-hub cache needs symlinks on Windows)
- `neuromesh install embed jina-code`: spec with a sub-path file
  (onnx/model_quantized.onnx), per-spec readiness, 3 attempts per file
- NEUROMESH_EMBED_MODEL also sets that model's vector width
- convex combination (0.6 lexical / 0.4 dense, Bruch et al. 2023)
- docs: CHANGELOG, configuration, measured, reply to upstream, handoff

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e file-localisation harness; research log

- selected_files was a sorted set of base names: no hit@k, ambiguous
  __init__.py
- scripts/swebench_localize.py: per-instance checkout of base_commit,
  packet on the issue text, plain BM25 on the same checkout, hit@1/3/5,
  resumable JSONL
- docs/research/contributions-log.md: contributions, evidence, negative
  results, the gap list to a top-venue paper
- with jina-code loaded the eight old sets are unchanged (web recall
  0.917 -> 0.922, precision 0.643 -> 0.639)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ParsaVictor
ParsaVictor marked this pull request as ready for review October 1, 2026 12:36
@ParsaVictor
ParsaVictor merged commit 66c1344 into main Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant