Skip to main content
Text Analysis & GenerationContent Creation

Generate Q&A from a Document

Creates a Q&A from a document: up to __Q_COUNT__ non-overlapping questions answered only from the text, exact Q1/A1 formatting, and 'Not specified' for missing details.

Prompt Content

Analyze the document and produce a clear Q&A set. 1) Read <document-text> Document Text </document-text> fully. 2) Identify the most important topics and points a reader would ask about. 3) Write up to Q Count specific, non-overlapping questions. 4) Answer strictly from the document; if unknown, write "Not specified". 5) Keep wording concise and faithful to the source. • Output format exactly: Q1: [question] A1: [answer] Q2: [question] A2: [answer] (continue up to QQ Count and AQ Count) • Number sequentially from 1. • Each question: 5-15 words. Each answer: 1-2 sentences. • No external knowledge, opinions, or summaries. <example> Q1: What problem does the policy address? A1: It standardizes data retention and deletion across all departments. Q2: Who is responsible for enforcement? A2: The Compliance Officer and department heads. </example> Document: <document-text> Document Text </document-text>

Variables

Document Text
The full document text to analyze.
Example: This policy defines data retention periods, roles, and enforcement steps for all departments...
Q Count
Number of Q&A pairs to generate (as text).
Example: 8