Open
Conversation
* added voayge ai provider with customizable batching configuration per provider * got through the PR checklist * fixed init setting 768 dimension instead of using model default
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #166 +/- ##
===========================================
+ Coverage 27.16% 46.33% +19.16%
===========================================
Files 32 71 +39
Lines 3711 13926 +10215
===========================================
+ Hits 1008 6452 +5444
- Misses 2620 6812 +4192
- Partials 83 662 +579 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Description
Add Voyage AI as a new embedding provider for grepai. Voyage AI offers code-optimized embedding models (e.g.,
voyage-code-3) that produce 1024-dimensional vectors, providing a cloud-based alternative tuned specifically for code search use cases.This PR implements:
VoyageAIEmbedderwith batch embedding, adaptive rate limiting, token bucket throttling, and retry logic (including 429/5xx handling)embedder.NewFromConfig/embedder.NewFromWorkspaceConfig)grepai initsupport (provider selection, endpoint/model defaults)DefaultVoyageAIEmbeddingModel,DefaultVoyageAIEndpoint, dimensions=1024)GetDimensions()for thevoyageaiproviderRelated Issue
Fixes #
Type of Change
How Has This Been Tested?
Test Configuration:
Checklist
golangci-lint runand fixed any issuesScreenshots (if applicable)
N/A
Additional Notes
VOYAGE_API_KEYenvironment variable is used for authentication (falls back to configapi_keyfield).voyage-code-3), distinct from OpenAI's 1536 and the local embedders' 768.output_dimensionfield,input_typesupport).embedder.NewFromConfigfactory pattern, avoiding code duplication across CLI commands and MCP server.