Say you ask "What is the height of Everest?"
1. generate an answer in closed-book model, with the LLM: "The height of Everest is 8723m" = candidate_answer
2. search your references with candidate_answer, find: "At 8,849 meters (29,032 feet), Everest is considered the tallest point on Earth" = search_snippet
3. do a second pass to rewrite the answer with the LLM using search_snippet in the prompt
Basically, the incorrect phrase candidate_answer is very good at matching the correct answer in search engines. It is like a template tuned to extract the desired facts. A search engine check could also verify when the searched fact has no references.