FAISS IndexFlatIP Without normalize_L2: 20 Chunks Hijacked 854 Queries
My RAG bot had one favorite answer. Ask it about refunds, it cited the cookie policy footer. Ask it about API rate limits, cookie policy footer. Ask it how to reset a password, footer again, now at position #1. The bug was one missing line. I had built the index with FAISS IndexFlatIP and fed it ra…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-12-01 21:22 · DEV Community — Machine Learning
FAISS IndexFlatIP Without normalize_L2: 20 Chunks Hijacked 854 Queries