LLM Gateway
Embeddings
Overview
Embedding models convert text into numerical vectors (embeddings) that capture semantic meaning. These vectors enable powerful applications like semantic search, text clustering, and similarity analysis. Heurist LLM Gateway provides embedding capabilities consistent with the OpenAI SDK interface.
Embeddings are particularly useful for:
- Finding similar text content
- Document clustering and classification
- Retrieval Augmented Generation (RAG)
Example Usage
Here’s a simple example showing how to generate embeddings using the Heurist API: