Skip to content

feat(server,alerter): add Gemini embedding support; bump default chat model#248

Open
dpage wants to merge 1 commit into
mainfrom
fix/issue-246-gemini-embeddings
Open

feat(server,alerter): add Gemini embedding support; bump default chat model#248
dpage wants to merge 1 commit into
mainfrom
fix/issue-246-gemini-embeddings

Conversation

@dpage
Copy link
Copy Markdown
Member

@dpage dpage commented May 15, 2026

Summary

  • Expose Gemini as a fourth embedding provider in server/knowledgebase
    config (the underlying pkg/embedding/gemini.go provider already existed
    but was unreachable from YAML). Supports text-embedding-004 and
    embedding-001 (both 768 dims).
  • Bump the default Gemini chat model from gemini-2.0-flash (no longer
    available to new API tier keys, returns 404) to gemini-2.5-flash in
    alerter code, server test fixtures, and example configs.
  • Document Gemini as an embedding provider in pkg/embedding/README.md
    and the server configuration guide; note that model availability
    varies by Gemini API key tier and recommend running ListModels.

Test plan

  • make test-all passes (server, alerter, collector, client)
  • go vet ./... clean in server/src and alerter/src
  • gofmt -l clean
  • golangci-lint reports 0 issues in server and alerter
  • New unit tests added for Gemini config merge, secret-file loading,
    and Gemini-provider construction via generate_embeddings,
    similarity_search, and search_knowledgebase tools (httptest-stubbed
    Gemini endpoint).
  • grep -rn "gemini-2.0-flash" clean except for the changelog entry
    that intentionally records the bump.

Closes #246

… model

Expose Gemini as a fourth embedding provider via the server's
EmbeddingConfig and KnowledgebaseConfig structs; the underlying
pkg/embedding/gemini.go provider already existed but was unreachable
from YAML. Update the default Gemini chat model from gemini-2.0-flash
(no longer available to new API tier keys) to gemini-2.5-flash in
alerter code, server test fixtures, and example configs.

Closes #246
@dpage dpage closed this May 15, 2026
@dpage dpage reopened this May 15, 2026
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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.

enhancement: add Gemini embedding support and fix default Gemini model name

1 participant