Rethinking RAG: Beyond Nearest Neighbor Search