Text Embeddings for RAG and Search: Ollama and OpenAI-Compatible APIs
An embedding is a fixed-dimensional float vector placing similar meanings nearby — a representation layer for search, clustering, dedup, and RAG retrieval, not token IDs and not chat output. The concepts stay identical across backends; only the HTTP surface changes. Two local patterns cover nearly everything: Ollama’s embed endpoint and any OpenAI-compatible embeddings route.