RodiumAi docs
Core concepts

Embeddings

Vectorize text for search, clustering, and RAG, OpenAI-compatible /v1/embeddings.

POSThttps://api.rodiumai.io/v1/embeddings

Use client.embeddings.create with a RodiumAi base_url. Input can be a string or an array of strings.

When to use

  • RAG: chunk docs, embed, store vectors, retrieve top-k.
  • Batch many strings in one request (input: string[]).
  • Semantic search / dedupe without a full LLM call.

Recipes

Minimal RAG

Chunk → embeddings.create → store vectors → cosine top-k → chat with retrieved context.

Note: Keep chunk size stable so distances stay comparable.

Batch inputs

Pass input as an array of strings to embed many chunks in one call.

Note: Watch TPM / RODI quotes on large batches.

Model choice

text-embedding-3-small for cost; larger models when recall quality matters more.

Note: Do not mix embedding models in the same vector index.

Examples

Request parameters

ParameterTypeRequiredDescription
modelstringRequiredEmbedding model id (e.g. openai/text-embedding-3-small).
inputstring | arrayRequiredText or array of texts to embed.

API reference: embeddings