feat: replace Voyage AI with local ONNX embeddings (@xenova/transformers)#2
Merged
daniel-harperdb merged 2 commits intomainfrom Mar 17, 2026
Merged
Conversation
…ers) Swap Voyage AI (voyage-3, 1024-dim, requires API key) for local ONNX inference using @xenova/transformers with all-MiniLM-L6-v2 (384-dim). The model downloads ~23MB on first call and runs in-process with no external API key required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
github-actions bot
pushed a commit
that referenced
this pull request
Mar 17, 2026
# [0.3.0](v0.2.0...v0.3.0) (2026-03-17) ### Features * replace Voyage AI with local ONNX embeddings (@xenova/transformers) ([#2](#2)) ([4a007a2](4a007a2))
|
🎉 This PR is included in version 0.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
voyageaipackage (Voyage AIvoyage-3, 1024-dim) with@xenova/transformersusing theXenova/all-MiniLM-L6-v2model (384-dim)Changes
resources.js: swap import, replacegetVoyageClient()withgetEmbeddingPipeline(), rewritegenerateEmbedding()to useextractor(text, { pooling: 'mean', normalize: true })package.json: removevoyageai, add@xenova/transformers: ^2.17.2.env.example: removeVOYAGE_API_KEY, add explanatory comment about local ONNXvoyageaimock with@xenova/transformersmock, removeVOYAGE_API_KEYenv setup, update dimension assertions (1024 → 384)CLAUDE.md,README.md,docs/architecture.md,docs/synapse-design.mdTest plan
npm teston Node 24)voyageaiorVOYAGE_API_KEYreferences in source filesnpm run devstarts withoutVOYAGE_API_KEYset🤖 Generated with Claude Code