Repository navigation
v0.5.0
All three embedding functions now support consistent model selection for semantic search and retrieval.
- Add
embed_query(text, model)andembed_passage(text, model)alongside the existingembed(text, model)overload. Query prefixes follow the selected model; passages remain unprefixed. - Set
VGI_EMBED_DEFAULT_MODELbefore worker startup to configure the shared default used by embedding functions, dimension lookup, warm-up, and catalog metadata. Explicit model arguments override it. - Existing one-argument calls retain
BAAI/bge-small-en-v1.5unless the default is configured. Use the same model for queries and stored document vectors; re-embed stored data when changing models.
Validated with unit and worker RPC tests, SQL integration tests over stdio/HTTP/Unix sockets, formatting/lint/type/docstring checks, executable metadata checks, and wheel/sdist validation.
Requires the current VGI DuckDB extension supporting protocol 3.3, as in v0.4.0.