Hugging Face sentence-transformers is a Python framework for state-of-the-art sentence, text and image embeddings.
You can use these embedding models from the HuggingFaceEmbeddings class.
Running sentence-transformers locally can be affected by your operating system and other global factors. It is recommended for experienced users only.
Setup
You’ll need to install thelangchain_huggingface package as a dependency:
Usage
Troubleshooting
If you are having issues with theaccelerate package not being found or failing to import, installing/upgrading it may help:
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.