chore: release v1.7.0 — BYOK embedding providers#41
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Pull Request
Type of Change
Description
Release v1.7.0 — finalises version bump and CHANGELOG for the BYOK (Bring Your Own Key) embedding providers feature.
This release introduces cloud embedding provider support alongside the existing local model, letting users pick OpenAI, Voyage AI, or Google Gemini embeddings by passing
provider=toindex_codebase. The embedder is refactored to a strategy pattern (EmbeddingProviderABC) so adding new providers is trivial. The vector store is updated to persist and adapt to each provider's embedding dimensionality.Related Issues / PRs
Changes Made
src/vecgrep/embedder.py—EmbeddingProviderABC;LocalProvider(ONNX/torch);OpenAIProvider,VoyageProvider,GeminiProviderwith lazy-loaded clients and_normalize()helper;get_provider(name)registry; backward-compatibleembed()free functionsrc/vecgrep/providers.py— provider registry modulesrc/vecgrep/store.py— dynamic_chunks_schema(dims)factory;dimsparam onVectorStore;_get_meta/_set_metahelpers;set_provider_meta/get_provider_meta;drop_and_recreate_chunks(dims)for force-switching;get_stats()returnsprovider,model,dimssrc/vecgrep/server.py—index_codebasegainsproviderparam;_resolve_providerenforces per-project lock;watch=Trueblocked for cloud providers;LiveSyncHandlerskips non-local providerspyproject.toml— version 1.7.0; optional extrasvecgrep[openai],vecgrep[voyage],vecgrep[gemini],vecgrep[cloud]tests/test_providers.py— full BYOK test suite (registry, LocalProvider, cloud providers w/ mocked APIs, missing-key and missing-package error paths)README.md— cloud provider table, install extras, BYOK usage examples, updated tool signatures andget_index_statusoutputCHANGELOG.md—[1.7.0] — 2026-03-04entryTesting
Cloud providers tested with mocked
openai,voyageai, andgoogle-genaiclients. Key/missing-package errors verified to raiseRuntimeErrorwith actionable messages. Local provider unchanged and covered by existing tests.Checklist
ruffpasses)Screenshots
N/A — CLI / MCP tool feature.