Skip to main content
Embeddings convert text into vectors that capture semantic meaning. Use them for search, retrieval-augmented generation (RAG), clustering, recommendations, deduplication, and similarity scoring. The Venice embeddings endpoint is OpenAI-compatible. Send one string or an array of strings to /embeddings, then store the returned vectors in your database or vector index.

Basic Usage

Batch Inputs

Pass an array of strings to embed multiple texts in one request:
The response preserves input order. Store each vector with the source text ID, metadata, and embedding model ID.

Common Workflow

  1. Split source documents into chunks.
  2. Generate embeddings for each chunk.
  3. Store vectors and metadata in a vector database.
  4. Embed the user’s query.
  5. Retrieve nearby chunks.
  6. Send the retrieved context to a chat model.
For a complete implementation, see Building a Private RAG Bot.

Model Selection

Use the Embedding Models page to compare current embedding models, dimensions, and pricing.
Use the same embedding model for indexing and querying. Mixing models can make similarity scores unreliable because vector spaces are not interchangeable.