When a retrieval-augmented generation (RAG) system answers a question, it first searches a document collection and gives selected passages to its language model. Someone who can add documents may repeat the question’s wording, making their material appear ahead of useful evidence.
Researchers tested keyword search and methods that find passages by meaning on scientific question collections. They varied whether inserted documents copied the whole question or only some of its words, and whether extra text was added.
Question-matching documents cut the quality of the top results by 40.2–61.5% in isolated tests. The risk begins before the language model reads anything: a system can receive poor evidence, though these tests do not show whether its model will follow a malicious instruction.
