• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 22070059215
62%

Build:
DEFAULT BRANCH: main
Ran 16 Feb 2026 04:23PM UTC
Jobs 1
Files 536
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Feb 2026 04:14PM UTC coverage: 62.269% (+0.1%) from 62.17%
22070059215

push

github

web-flow
Add vector embedding support and hybrid search to ToolStore (#3808)

* Add vector embedding support and hybrid search to ToolStore

Extend the SQLite-backed ToolStore with optional embedding-based semantic
search. When an EmbeddingClient is provided, Search runs FTS5 and cosine
similarity in parallel via errgroup, merges and deduplicates results by
keeping the lower distance score, and caps output at 4 results.

Key additions:
- EmbeddingClient interface in internal/types (Embed, EmbedBatch, Dimension, Close)
- FakeEmbeddingClient using SHA-256 seeded RNG with L2-normalized vectors
- Pure Go cosine similarity/distance in internal/similarity package
- Binary encode/decode helpers for embedding BLOB storage
- normalizeBM25 rescaled to [0, 2) range to align with cosine distance
- Comprehensive unit tests, concurrency tests, and benchmarks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Added note about benchmarking

* Moved fake_embeddings, added more comments to search and changed entrypoint for embeddings

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

185 of 210 new or added lines in 5 files covered. (88.1%)

10 existing lines in 3 files now uncovered.

44789 of 71928 relevant lines covered (62.27%)

78.2 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
96.08
-3.92% pkg/vmcp/optimizer/store.go
5
85.71
pkg/vmcp/optimizer/internal/similarity/fake_embedding.go
18
83.98
3.57% pkg/vmcp/optimizer/internal/sqlite_store/sqlite_store.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
2
53.86
-0.2% pkg/workloads/manager.go
6
75.47
-5.66% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 22070059215.1 16 Feb 2026 04:23PM UTC 536
62.27
GitHub Action Run
Source Files on build 22070059215
  • Tree
  • List 536
  • Changed 10
  • Source Changed 3
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22070059215
  • f496a4d2 on github
  • Prev Build on main (#22068558315)
  • Next Build on main (#22078203141)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc