Nginx routing to old embedding model causing RAG retrieval mismatch
Problem Description In a cloud‑managed deployment the Retrieval‑Augmented Generation (RAG) service began returning unrelated documents. The downstream application logged an “Embedding dimension mismatch” error and occasional 502 Bad Gateway responses such as: 2024/09/20 12:34:56 [error] 27#27: *1023 upstream prematurely closed connection while reading response header from upstream, client: 10.2.3.45, server: rag-api.example.com, request: “POST /embed HTTP/1.1”, … Read more