Commit Graph

1 Commits

Author SHA1 Message Date
Tarik Moussa
4efaa55ed8 spike(embed): F-04 BGE-M3 dense+sparse — NO-GO
Reason: SentenceTransformer.encode() in sentence-transformers 5.5.1 does
not accept return_dense / return_sparse kwargs. Those belong to the
FlagEmbedding.BGEM3FlagModel API, which is not in our dependency set.

Dense encoding works fine via the vanilla encode() call (shape (N, 1024),
float32). Sparse / lexical_weights requires either:
  (a) adding FlagEmbedding as a dependency, or
  (b) using sentence_transformers.SparseEncoder with a SPLADE checkpoint, or
  (c) driving the underlying transformers model and sparse head manually.

Branch retained as documentation per docs/loops/spike-gate.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 23:37:47 +02:00