TOPIC AI
Grounding anchoring answers in verified facts
IN 10 SECONDS
Ensuring model responses are based on verifiable, reference facts or documents (like your own documentation in RAG) rather than its internal parametric training data.
GOTCHA If source documents are missing target facts, the model may fail to answer or try to hallucinate an explanation.
HOW FACT ANCHORING WORKS
01 Data match app pulls verified documentation from repository index database.
02 Injection places documentation text block in LLM prompt system context.
03 Generation constraints directs model: 'Answer only based on the facts provided below.'
04 Reference output model outputs answer citing exact lines from source documents.
POKE IT YOURSELF
promptfoo eval -c RAG-grounding.yaml — test grounding accuracy
Drill this topic →
~65 sec read