Text Analytics Toolbox Model for all-MiniLM-L6-v2 Network

Pretrained all-MiniLM-L6-v2 Network for MATLAB

You are now following this Submission

The all-MiniLM-L6-v2 is a sentence embedding model that can be used to convert sentences into a fixed-length numeric representation. Sentence embedding models are used in tools for similarity detection, information retrieval, or, with Large Language Models, such as in retrieval augmentation generation and semantic search workflows.
You can use this model with the documentEmbedding feature:
mdl = documentEmbedding(Model="all-MiniLM-L6-v2");
embed(mdl, "Accelerating the pace of engineering and science.");

MATLAB Release Compatibility

  • Compatible with R2024a to R2026a

Platform Compatibility

  • Windows
  • macOS (Apple Silicon)
  • macOS (Intel)
  • Linux