Release v0.4.0
Release v0.4.0 - Expanded Embedding Options & CPU Focus
This release significantly expands the embedding capabilities of db2vec, offering more flexibility while maintaining a strong focus on efficient CPU-based processing.
✨ New Features
- Multiple Embedding Providers: You can now choose your embedding engine!
rustbert: Utilizes the built-inall-MiniLM-L6-v2model (384 dimensions) directly on your CPU via therust-bertlibrary. No external service needed!google: Connect to Google's Generative AI API (e.g.,text-embedding-004) using your API key.ollama: Continued support for using any model served locally via Ollama.
🚀 How to Use New Embeddings
Select your provider and model using the following flags:
--embedding-provider <PROVIDER>: Chooseollama,rustbert, orgoogle.--embedding-model <MODEL_NAME>: Specify the model name (e.g.,nomic-embed-textfor Ollama,text-embedding-004for Google). This flag is ignored forrustbertas it uses the built-in model.--dimension <DIM>: Crucial! Set this to match your chosen model's output dimension (e.g.,384forrustbert,768fortext-embedding-004).--embedding-api-key <KEY>: Required only when using--embedding-provider google. Can also be set viaSECRETenv var.--embedding-url <URL>: Primarily for Ollama, but can be used to specify a different Google API endpoint if needed.
Example (Rust-Bert):
./db2vec -f dump.sql -t qdrant --embedding-provider rustbert --dimension 384