Vector-Db

Text Embeddings for RAG and Search: Ollama and OpenAI-Compatible APIs

Text Embeddings for RAG and Search: Ollama and OpenAI-Compatible APIs

3 min read

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.

Memory Systems in AI Assistants: Working, Structured, Retrieval

Memory Systems in AI Assistants: Working, Structured, Retrieval

4 min read

Memory turns assistants from reactive to persistent — and it’s where systems quietly rot. The old short-term/long-term split no longer covers modern agents. The working stack is three layers: working memory for the live run, structured state for durable truth, retrieval memory for supporting evidence — plus a consolidation policy that forgets as deliberately as it remembers.