Skip to content

Reconcile symmetric vs asymmetric bge-small convention between Lattice embedding providers #662

Description

@ruvnet

Summary

PR #648 (LatticeEmbedding in crates/ruvector-core) and PR #651 (LatticeWasmEmbeddings in npm/packages/ruvector-extensions) both add a "Lattice"-backed bge-small embedding provider, but they disagree on whether the model is symmetric or asymmetric:

Same declared model, same 384 dimensions, different vector spaces. A user who indexes a corpus with one Lattice provider and queries with the other gets no error — just silently degraded retrieval, since query vectors and passage vectors won't be prefixed consistently.

Suggested fix

Reconcile which convention is authoritative for bge-small/bge-small-en-v1.5 across both providers — likely by matching whatever the upstream lattice-embed crate does natively for this model — so the two "Lattice embeddings" surfaces stay interchangeable for users who expect a shared name to mean a shared embedding space.

Secondary, non-blocking notes from review (bundle in if convenient)

cc @ohdearquant — thanks again for both PRs, just want to make sure the two surfaces stay safely interchangeable before folks build on them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions