Skip to main content
You can use embedding models from Huggingface to run Mem0 locally.
The TypeScript SDK supports Hugging Face only through a hosted Text Embeddings Inference (TEI) endpoint, or any OpenAI-compatible Hugging Face endpoint. The local sentence-transformers mode shown first is Python-only.

Usage

Using Text Embeddings Inference (TEI)

You can also use Hugging Face’s Text Embeddings Inference service for faster and more efficient embeddings. This is the mode the TypeScript SDK uses.
To run the TEI service, you can use Docker:

Config

Here are the parameters available for configuring the Hugging Face embedder: