For AI agents: docs.octen.ai/capabilities/embedding.md
Keyword matching misses meaning: “laptop won’t start” and “computer fails to boot” share no words but describe the same problem. Embeddings close that gap by turning text into vectors that capture meaning, so similar content lands close together. This is the foundation of semantic search, and the Embedding API produces these vectors with Octen’s embedding models. For the full list of parameters, see the Embedding API reference.What are Embeddings
Embeddings are fixed-length vectors of real numbers, produced by an embedding model, that represent content in a high-dimensional space. They preserve semantic relationships geometrically: inputs with similar meaning map to vectors that sit close together, while unrelated inputs land far apart. An embedding is a representation, not a retrieval mechanism by itself. It gives unstructured content a standard form that can be indexed and compared for semantic retrieval.Why Embedding
- Semantic search. Match by meaning, so users can phrase queries naturally instead of guessing keywords.
- RAG. Retrieve the most relevant chunks of your own knowledge to ground model responses.
- Clustering and recommendations. Group related content and surface similar items by vector proximity.
Why Octen
- SOTA retrieval quality.
octen-embedding-8bandocten-embedding-4brank #1 and #2 on the RTEB text-retrieval benchmark. - Flexible model choice. Pick the model that fits your scenario and cost, from best accuracy to high-volume and low-cost.
- Retrieval-tuned. Mark inputs as query or document to apply the right internal prompt, and adjust output dimensions to fit your index.
- Works with your stack. Standard float vectors, compatible with all major vector databases; batch input supported.
Model Choices
How It Works
- Embed your content. Split large documents into chunks that each carry one coherent idea, then send the chunks in batches. The model encodes each one into a fixed-length vector, and texts with similar meaning land close together in the vector space.
- Build a vector index. Store the vectors in a vector database. Its index structures, such as HNSW or IVF, locate the closest vectors quickly without scanning them all.
- Embed queries and retrieve. Encode each incoming query with the same model, so queries and content share one vector space. Compare the query vector against the index with a similarity metric, such as cosine similarity, and the top matches provide the context for re-ranking or answer generation.
Compared with other retrieval approaches
Embedding retrieval commonly serves as the semantic recall layer in modern search systems.Scenarios
Index documents
Embed content in batches, marked as documents.Embed the search query
Embed queries with the same model, marked as queries, and compare against your index.Cluster and recommend
Embed a set of items and compare vector proximity to group similar content or surface related items. The first two items below land close together; the third lands far away.Cut cost and index size
Use a smaller model, or reduce the output dimensions.Next Steps
Embedding API Reference
Full request/response schema.