VLLMEmbedder runs in two modes. Local mode loads the model in-process with no server or API key. Remote mode connects to a running vLLM server through its OpenAI-compatible API, selected by setting base_url.
vllm_embedder.py
intfloat/e5-mistral-7b-instruct (4096 dimensions) needs roughly 14GB of VRAM.
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Run the example