NV-Embed-v2
NVIDIA's 7.8B open-weight generalist text embedding model built on a Mistral-7B backbone with latent-attention pooling and two-stage instruction tuning, delivering high-precision dense representations for retrieval, clustering, and semantic similarity.
What you can do
- High-precision dense passage retrieval
- Semantic textual similarity scoring
- Document chunk clustering and deduplication
Input & output
- Input
- Task instruction prefixes paired with search queries or long document passages (up to 32K tokens)
- Output
- 4096-dimensional L2-normalized dense floating-point embedding vectors
Example input
Instruct: Given a technical support query, retrieve relevant troubleshooting documentation passages Query: Kubernetes pod stuck in Terminating state due to finalizer deadlock on PVC
Things to know
Licensed under CC-BY-NC-4.0 (non-commercial use only; commercial deployment requires separate licensing); requires ~16GB VRAM in BF16 and `trust_remote_code=True` for its custom latent-attention pooling layer.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/embeddings- Model repo ID
nvidia/NV-Embed-v2
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
result = client.embeddings.create(
model="nvidia/NV-Embed-v2",
input=["Instruct: Given a technical support query, retrieve relevant troubleshooting documentation passages\nQuery: Kubernetes pod stuck in Terminating state due to finalizer deadlock on PVC"],
)
print(len(result.data[0].embedding))Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide