Installation
FastEmbed is an optional dependency, so install it alongside Mem0.Usage
The Python and TypeScript SDKs default to different models. Python defaults to
thenlper/gte-large (1024 dimensions), while TypeScript defaults to fast-bge-small-en-v1.5 (384 dimensions). The TypeScript package (fastembed on npm) ships a fixed set of ONNX models and does not include thenlper/gte-large. Because the two defaults produce vectors of different dimensions, do not point both SDKs at the same vector store collection unless you configure them to use the same model.model:
fast-bge-small-en-v1.5(default)fast-bge-small-enfast-bge-base-enfast-bge-base-en-v1.5fast-bge-small-zh-v1.5fast-all-MiniLM-L6-v2fast-multilingual-e5-large
Config
Here are the parameters available for configuring the FastEmbed embedder:- Python
- TypeScript