Skip to content

Conversation

@T-Lind
Copy link

@T-Lind T-Lind commented Dec 31, 2025

Add LEAF Embedding Model Support

Adds support for the MongoDB LEAF embedding model (MongoDB/mdbr-leaf-ir), a compact 6-layer, 384-dimensional BERT-based model optimized for information retrieval.

Changes

  • Added LeafModelExample.java with CLI flags for normalization, batch size, and parallel processing
  • Added run-leaf-example.sh script
  • Updated README with LEAF documentation and semantic search use cases
  • Added TestModels.LeafModelRun() test

Updated LeafModelExample
Added support for L2 normalization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant