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

Pretrained all-MiniLM-L12-v2 Network for MATLAB
85 Downloads
Updated 25 Nov 2025
The all-MiniLM-L12-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-L12-v2");
embed(mdl, "Accelerating the pace of engineering and science.");
MATLAB Release Compatibility
Created with R2024a
Compatible with R2024a to R2026a
Platform Compatibility
Windows macOS (Apple Silicon) macOS (Intel) Linux