Support agent
Technical documentation bot
E-commerce product assistant
Multi-language bot
Custom standalone question prompt
The standalone question prompt controls how follow-up questions are rephrased for search. Customize it to match your domain:Formal vs. casual tone
Template variable reference
Your prompt template must include exactly these three placeholders:| Placeholder | What it contains |
|---|---|
{context} | Top 3 document chunks retrieved from Pinecone (after reranking) |
{chat_history} | Last N exchanges from the conversation (N = max_chat_history) |
{question} | The user’s current message (original, not reformulated) |
KeyError at runtime.