Skip to content

The Buric embedder

Retrieval quality is the product, and the embedding model is where it comes from. Every chunk in your index and every query you run passes through it. CodeNavi ships its own code-specialized model, Buric-E0.6B, and lets you switch to a larger listed model with one setting. This page says what the model is, how it runs, and how to switch.

What it is

  • Buric-E0.6B is a 0.6-billion-parameter embedding model that produces 1024-dimension vectors. CodeNavi fine-tuned it for code retrieval from Qwen3-Embedding-0.6B. A cross-encoder reranker re-reads each query against the candidate chunks before results are returned.
  • Fine-tuned once, by CodeNavi, before shipping. No fine-tuning ever happens on your data: your code is embedded, never trained on.
  • Baked into the release image: no model download at runtime, no remote model code, and the same bytes on a connected install and an air-gapped one. First start fetches only the ~80 MB reranker, once.
  • Search queries get a fixed instruction prefix; code and documents get none. The prefix belongs to the model and is set by CodeNavi, not by you.
  • The weights are proprietary, licensed under the CodeNavi Model License (MODEL-LICENSE.md in every package), separate from the third-party components list.

Why this size

Until release 1.3.76 the default was Buric-E4B, a 4-billion-parameter model. We measured both in the full search pipeline on 215 bug reports from six public repositories (314 files to find, right file in the top 5):

Buric-E0.6B (default) Buric-E4B (before)
Files found, question = report title 201 199
Files found, question = full report text 198 207
Full index of 93,558 chunks, one 32 GB GPU about 9 minutes about 33 minutes
Model on disk 1.2 GB 4.4 GB
Stored vectors for those chunks 383 MB 958 MB

The small model finds about as many files on short questions and about 3 points fewer on long ones. In exchange the index builds about four times faster, the image is smaller, and the model runs on machines the 4B model could not use: a CPU-only server encodes 1 to 2.4 chunks per second with it (measured on a desktop Intel i7), where the 4B model was not usable at all.

How it runs

Everything happens on your hardware: embedding, indexing, search and reranking. Nothing about the model phones home.

  • GPU-accelerated indexing: NVIDIA (Turing and newer) or AMD ROCm, with the same index on either vendor. See the GPU compatibility matrix.
  • One model, two uses: the same loaded model embeds code and documents (the code and content entries of the /models endpoint of the API).
  • No GPU on the box? The model runs on the CPU. Indexing a large codebase there is slow, so for big repositories build the index on a one-shot cloud GPU and copy it over. Both machines must run the same model.

Switch the model

One setting selects the model: CODE_EMBEDDING_MODEL in the .env file of your install. Empty means the model in the image. The vector size, the query prefix and the token limit come with the model; you do not set them.

Listed models:

Model Setting Vector size Notes
Buric-E0.6B (empty, default) 1024 In the image
Qwen3-Embedding-4B /models-extra/Qwen3-Embedding-4B 2560 The larger option. Apache-2.0, from Hugging Face. It holds 7.5 GB of GPU memory, so it needs a card with 11 GB or more. Without a GPU it needs about 18 GB of memory for the container (RAM_LIMIT in .env; on Windows, Docker Desktop's memory too) and indexes very slowly, so use it with a GPU. In our test it found about as many files as Buric-E4B. Indexing is about four times slower than the default
Qwen3-Embedding-0.6B /models-extra/Qwen3-Embedding-0.6B 1024 The unmodified base of the default. Apache-2.0

An install made before the release that added this setting needs that release's compose file: apply the assets refresh first. With an older compose file the settings below are ignored and the server keeps the default model.

To use a model that is not in the image:

  1. On a machine with internet access, download the model folder from Hugging Face (for example Qwen/Qwen3-Embedding-4B). Name the folder as in the table.
  2. Copy the folder into a models folder beside your install. On an air-gapped server, carry it in on your usual media.
  3. In .env, set CODENAVI_MODELS_DIR=./models (Linux; on Windows the models folder is mounted without this line) and CODE_EMBEDDING_MODEL=/models-extra/<folder name>.
  4. Restart the server. It starts one full reindex by itself.

Good to know:

  • A model change needs one full reindex of every codebase. Vectors from two models cannot be mixed. Until a codebase is rebuilt, semantic_search says so instead of returning wrong results; grep_search and read_file keep working. Notes, wiki pages and documents added with reindex_docs are re-encoded in the same run.
  • The server never downloads a model. The folder is mounted read-only, and code inside a model folder is never run. Weights must be .safetensors files, as on Hugging Face for the listed models; a folder with only pytorch_model.bin does not load.
  • Only listed models start. A generic embedding model or an embedding API loses about 30 retrieval-quality points on code in our tests, so the server refuses an unlisted model.
  • An index built elsewhere must match. If you build an index on another machine, both must use the same model, or the serving machine rebuilds it.

If a new Buric revision ships, it arrives in a signed release image. The index records which model and version encoded it, so the first start after the upgrade rebuilds every codebase in full by itself (/health shows the version under embedding_models.code).