Skip to content

Default OLLAMA_MODEL to embeddinggemma:300m in docker-compose#1

Merged
iksnerd merged 2 commits into
mainfrom
feat/embeddinggemma-default
May 1, 2026
Merged

Default OLLAMA_MODEL to embeddinggemma:300m in docker-compose#1
iksnerd merged 2 commits into
mainfrom
feat/embeddinggemma-default

Conversation

@iksnerd

@iksnerd iksnerd commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds OLLAMA_MODEL env var to the code_nexus service with embeddinggemma:300m as the default
  • Existing 768-dim vector size in qdrant_client.ex and tfidf_embedder.ex matches embeddinggemma's default output dimension, so no schema change needed
  • embedding_model.ex already reads OLLAMA_MODEL (falls back to nomic-embed-text constant if unset, but docker-compose now supplies the env var)
  • Users can override with OLLAMA_MODEL=nomic-embed-text docker-compose up

Test plan

  • docker-compose up -d with WORKSPACE=~/www boots the stack
  • mcp__code-nexus__reindex(path: "elixir-nexus") indexes the repo (70 files, 794 chunks)
  • get_graph_stats returns 794 nodes, 3311 call edges, 54 imports
  • search_code "embed text via Ollama" returns ElixirNexus.EmbeddingModel as top hit (score 0.6)
  • find_all_callers "embed_batch" returns 5 callers across 3 files
  • mix compile --warnings-as-errors passes
  • mix format --check-formatted passes

🤖 Generated with Claude Code

iksnerd added 2 commits May 1, 2026 20:18
Adds OLLAMA_MODEL env var to the code_nexus service with embeddinggemma:300m
as the default. Matches the existing 768-dim vector size and lets users
override with `OLLAMA_MODEL=... docker-compose up`.
The published image doesn't include curl, so every healthcheck probe
failed with "executable file not found" and the container was reported
unhealthy even though Phoenix on :4100 was serving fine. Switch to the
same bash /dev/tcp probe qdrant uses.
@iksnerd iksnerd merged commit bc2d689 into main May 1, 2026
5 of 6 checks passed
@iksnerd iksnerd deleted the feat/embeddinggemma-default branch May 1, 2026 18:15
iksnerd added a commit that referenced this pull request May 4, 2026
* Default OLLAMA_MODEL to embeddinggemma:300m in docker-compose

Adds OLLAMA_MODEL env var to the code_nexus service with embeddinggemma:300m
as the default. Matches the existing 768-dim vector size and lets users
override with `OLLAMA_MODEL=... docker-compose up`.

* Fix code_nexus healthcheck — use /dev/tcp instead of curl

The published image doesn't include curl, so every healthcheck probe
failed with "executable file not found" and the container was reported
unhealthy even though Phoenix on :4100 was serving fine. Switch to the
same bash /dev/tcp probe qdrant uses.

---------

Co-authored-by: iksnerd <iksnerd@users.noreply.github.com>
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