Repository navigation
Default embedding: embeddinggemma via ollama (0.3.2) - #13
Merged
Merged
Conversation
…ed; codebase benchmark; 0.3.2 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12.
What changes
gemma(embeddinggemma through a local ollama, loopback only). A bare--embednow meansgemma; the other presets are written--embed=minilm|qwen3|potion|openai|cohere.ollama pull embeddinggemma && duplicatecode scan . --embed; MiniLM is no longer described as best.eval/make_codebase_task.py,eval/embed_codebases.py(newollama:<model>backend),eval/analyze_codebases.py,eval/static_rank/.Why gemma
Re-implementation retrieval over 8 codebases, 240 functions (details in #12): R@1 0.942 vs 0.892 for the static detector alone, and still 0.942 with function names masked. MiniLM-L6 0.854, bge-m3 0.912, Qwen3-0.6B 0.917. About 5 ms per text on a GPU.
Tested
cargo test --workspace --locked(52 pass),cargo fmt --check.eval-groupson the holdout, default profile: static 0.7607 -> 0.9071 with--embed(gemma). Per set: fn-python 0.706 -> 0.801, fn-typescript 0.728 -> 0.920, javascript 0.497 -> 0.788, python 0.660 -> 0.948, react 0.980 -> 0.987, sql 0.993 -> 0.9995.Not covered
Default is unchanged without
--embed. Thresholds with embeddings were set for MiniLM; false-positive rate of gemma on a realscanis not measured. The 11 HF-only models were not run.🤖 Generated with Claude Code