30 expert prompts for building intelligent question answering systems, retrieval-augmented generation pipelines, and knowledge bases powered by AI.
You are helping me build a knowledge base for [domain]. I will provide you with documents, FAQs, and reference materials. Your task is to: 1) Identify key concepts and relationships, 2) Organize content into logical categories, 3) Create cross-references between related topics, 4) Flag ambiguities or gaps. Start by asking me what domain I am working in and what types of documents I have.
I want to build a question answering system that retrieves relevant documents before generating answers. Help me design a RAG pipeline that: 1) Indexes my knowledge base for fast retrieval, 2) Scores document relevance to user questions, 3) Passes relevant context to the language model, 4) Generates answers that cite sources. What are the key components and how should I structure the workflow?
I have unstructured FAQ data from [source]. Help me extract and structure it into a machine-readable format. For each Q&A pair, identify: 1) the main question, 2) related variations, 3) key entities mentioned, 4) topic categories, 5) confidence level. Output as JSON with consistent schema suitable for indexing in a knowledge base.
I am building a question answering system and my document retrieval is returning irrelevant results. For the question '[user question]', the top retrieved documents are: [list documents]. Help me: 1) analyze why irrelevant documents ranked high, 2) suggest ranking improvements, 3) recommend better chunking or indexing strategies, 4) propose relevance scoring adjustments.
I have long documents that exceed my language model's context window. Help me design a strategy to: 1) chunk documents effectively without losing context, 2) create summaries of each chunk, 3) implement hierarchical retrieval (summary first, then detailed chunks), 4) preserve cross-references between chunks. What are best practices?
I need a system to manage versions of my knowledge base and track changes over time. Help me design: 1) a versioning scheme for documents, 2) change tracking (what was updated and when), 3) rollback mechanisms, 4) approval workflows for updates, 5) testing procedures to ensure new knowledge doesn't break existing Q&A. How should I structure this?
Help me classify user questions by intent type. For each of these question categories, provide 5 example questions: 1) Factual questions (asking for specific information), 2) How-to questions (asking for instructions), 3) Explanatory questions (asking why something works), 4) Opinion questions (asking for perspective), 5) Clarification questions (asking for more details). How should I structure a classifier for these intents?
When a user asks an ambiguous or multi-part question like '[example question]', how should I respond? Provide a framework for: 1) detecting ambiguity or multiple questions, 2) asking clarifying questions, 3) breaking multi-part questions into sub-questions, 4) answering each part separately, 5) synthesizing a comprehensive response.
Users often ask the same question in different ways. Given this core question '[question]', generate 10 variations that mean the same thing but use different wording, phrasing, and terminology. How can I use these variations to train a system to recognize intent equivalence?
Help me build an entity extraction system for question answering. For the question '[example question]', identify: 1) named entities (people, places, organizations), 2) domain-specific entities (products, features, concepts), 3) temporal references (dates, time periods), 4) scope modifiers (specific vs. general), 5) implicit context from conversation history.
I want to generate answers at the right level of detail. For a question about '[topic]', help me determine: 1) is the user asking for a brief answer or detailed explanation?, 2) should I include background context or assume prior knowledge?, 3) what examples are appropriate?, 4) how technical should the language be? Provide a framework for inferring answer scope from question signals.
In a multi-turn conversation, users often ask follow-up questions that rely on previous context. Show me how to: 1) maintain conversation state, 2) resolve pronouns and references to previous responses, 3) infer what the user is following up on, 4) avoid repetition while answering new aspects, 5) gracefully handle topic shifts.
I want my Q&A system to cite sources for every answer. Help me create a prompt template that: 1) retrieves relevant source documents, 2) generates an answer grounded in those sources, 3) includes inline citations (e.g., [Source: document name]), 4) provides a 'Further Reading' section with links, 5) flags any information that is not found in the sources.
My AI Q&A system is sometimes generating incorrect information (hallucinating). Help me design safeguards: 1) strict instruction to cite sources or decline to answer, 2) confidence scoring for generated answers, 3) comparison against a fact-checking database, 4) human review for high-stakes questions, 5) feedback loops to identify and fix hallucinations.
Help me design answer structures for different user needs: 1) Quick answer (one sentence), 2) Standard answer (2-3 paragraphs with examples), 3) Detailed answer (comprehensive with background, examples, edge cases), 4) Expert answer (technical depth). Provide templates for each level and guidance on when to use each.
When a question is outside my knowledge base or unanswerable, I should respond helpfully. Create a framework for: 1) detecting unanswerable questions, 2) explaining why the question cannot be answered, 3) suggesting related questions I can answer, 4) providing alternative resources or escalation paths, 5) asking the user to rephrase or provide more context.
After answering a user question, I want to suggest relevant follow-up questions to deepen the conversation. For an answer about '[topic]', generate 5 thoughtful follow-up questions that: 1) explore related concepts, 2) address common misconceptions, 3) provide practical application, 4) offer alternative perspectives, 5) go deeper into specific aspects.
I want my Q&A system to provide consistent answers when asked similar questions. Help me: 1) identify variations in how the same concept is explained, 2) standardize terminology and definitions, 3) create answer templates for common topics, 4) detect contradictions between answers, 5) maintain an answer registry for consistency checks.
I want to build a customer support chatbot powered by AI. Help me create a system that: 1) uses our internal documentation as the knowledge base, 2) answers common support questions, 3) collects customer context (account, issue type, history), 4) escalates complex issues to human agents, 5) learns from agent responses to improve future answers. What prompts and workflows should I use?
My company has thousands of pages of internal documentation scattered across wikis, Google Docs, and databases. Help me build a unified Q&A system that: 1) indexes all documentation sources, 2) answers employee questions about policies, procedures, and systems, 3) cites authoritative sources, 4) keeps answers up-to-date with document changes, 5) tracks which questions are asked most frequently.
I need a Q&A system for legal and compliance questions that: 1) retrieves from authoritative legal documents, 2) includes proper disclaimers (not legal advice), 3) cites specific clauses or regulations, 4) flags ambiguities or conflicting regulations, 5) escalates uncertain questions to compliance teams, 6) handles updates when laws change. How should I structure this?
I want to embed a Q&A assistant in my product documentation. The system should: 1) answer questions about product features and usage, 2) provide contextual help based on the page user is viewing, 3) suggest relevant documentation sections, 4) offer quick tutorials and examples, 5) track questions users cannot find answers to. How should I integrate this?
For my live event (webinar/conference/workshop), I want to generate FAQs in real-time based on attendee questions. Help me: 1) monitor incoming questions, 2) cluster similar questions together, 3) generate concise answers, 4) organize answers by topic, 5) share the growing FAQ with all attendees. What tools and workflow would work best?
I need to support customer questions in multiple languages [list languages]. Help me design: 1) a system that detects customer language, 2) retrieves documentation in the right language, 3) generates answers in the customer's language, 4) handles terminology translation across languages, 5) maintains consistency across language versions.
I want to measure how well my Q&A system is performing. Help me define metrics for: 1) answer relevance (does it answer the question?), 2) factual accuracy (is the information correct?), 3) completeness (are all aspects covered?), 4) clarity (is it easy to understand?), 5) source quality (are citations valid?). Provide formulas or rubrics for scoring each metric.
I want to conduct user testing to validate my Q&A system. Design a test plan that includes: 1) test questions representing different intents and difficulty levels, 2) success criteria for evaluating answers, 3) user feedback collection (rating, comments), 4) comparison against baseline (human answers), 5) statistical analysis of results. How should I structure this?
My Q&A system is not answering some user questions well. Help me: 1) log and analyze unanswerable questions, 2) identify gaps in my knowledge base, 3) detect topics that are underrepresented, 4) find conflicting or outdated information, 5) prioritize what content to add or update. Provide a framework for continuous improvement.
I want to proactively monitor answer quality and catch errors. Help me set up: 1) automated quality checks (length, grammar, citation presence), 2) anomaly detection (unusual answer patterns), 3) user feedback loops (rating answers, flagging errors), 4) regular audits (sampling answers for review), 5) alerts for critical failures. What metrics should I track?
I want to test different approaches to question answering (different prompts, retrieval methods, answer formats). Design an A/B testing framework that: 1) randomly assigns users to variants, 2) measures answer quality, user satisfaction, and engagement, 3) detects statistically significant differences, 4) safely rolls out winners, 5) maintains experiment isolation.
I want my Q&A system to improve over time based on user feedback. Help me design: 1) feedback collection mechanisms (user ratings, corrections), 2) data pipelines to aggregate feedback, 3) retraining workflows using feedback data, 4) version control for model updates, 5) safety mechanisms to prevent bad feedback from degrading quality.
Prompts for journalism, reporting, and content creation
Prompts for workflow optimization and process automation
Prompts for HR, recruitment, and team management
Prompts for building and space management
Prompts for document processing and management
Prompts for content summarization and synthesis
Prompts for creative writing and content generation
Prompts for strategy, analysis, and business consulting