Code QuizIntermediate

Grounding Instructions Against Hallucination

Instructing a model to answer only from provided context to reduce hallucination.

Codejavascript
const prompt = `Answer the question using your best general knowledge.

Context:
${retrievedDocs}

Question: ${userQuestion}

If the answer is not in the context, say "I don't know."`;

What is the bug in this grounding prompt?