Skip to main content
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
Local mode downloads the model from Hugging Face on first use. Larger models need matching GPU memory; 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

Developer Resources