RAG pipeline dimension error after updating embedding model in Docker Compose
Problem The Retrieval‑Augmented Generation (RAG) service, deployed with Docker Compose, fails during inference with a dimension mismatch error. The query encoder produces vectors of a different size than the document encoder, causing the retrieval component to raise an exception and abort the request. 2026-10-31 14:12:07,842 ERROR rag_service.inference – RuntimeError: Expected embedding dimension 768 but got … Read more