Prompting & context engineering
4 questions
- You stuff 60 retrieved documents into one prompt and the model uses facts from the beginning and end but ignores a crucial fact in the middle. Diagnose it and fix it.mid
- An agent reads retrieved documents and tool outputs and can take actions. How do you defend against indirect prompt injection, and why can't a better system prompt solve it?staff
- Your JSON parsing works in development but fails intermittently in production even at temperature 0. Diagnose it and describe the durable fix.mid
- Your chain-of-thought prompt is not improving accuracy on a reasoning task. What do you check and what do you change?mid