RAG for Everyone

← Back to practice

Chapter 19 Interview Prep50 min review

Interview Questions: Context Injection

Q01

What is context injection?

The controlled assembly of retrieved evidence into a structured, model-ready prompt context.

Q02

Why is raw chunk stuffing risky?

It creates noise, citation confusion, token waste, and prompt-injection exposure.

Q03

What belongs in a context pack?

Question, evidence text, citation ids, metadata, answer rules, budget decisions, and dropped-context reasons.

Q04

How do you order evidence?

Prefer direct relevance, authority, freshness, diversity, and logical answer flow.

Q05

How do you defend against prompt injection?

Separate instructions from evidence and treat retrieved text as quoted data, never as system instruction.

Q06

What makes a good citation?

A stable source id tied to source, section, version, and chunk or quote span.

Q07

How do you handle context overflow?

Reserve answer budget, drop duplicates/low-authority chunks, log reasons, and refuse if evidence becomes insufficient.

Q08

What can compression break?

It can remove conditions, exceptions, dates, thresholds, or attribution needed for faithful answers.

Q09

What metrics matter?

Context precision, citation support, token usage, truncation rate, conflict rate, and answer groundedness.

Q10

What is the senior answer?

Context injection is where retrieval quality becomes answer quality through structured evidence, boundaries, citations, and observability.

← Practice BankProject →