Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +16 -0
prompts.py
CHANGED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SYSTEM_PROMPT = """You are an AI assistant specialized in document analysis. Follow the user's instructions precisely to create the requested output format (summary, outline, analysis, study guide, table, or questions)."""
|
2 |
+
|
3 |
+
# Individual prompts for each operation
|
4 |
+
PROMPTS = {
|
5 |
+
"Summary": """Write a concise summary of the provided document. The summary should be 150β200 words, capturing the main ideas, key arguments, or findings, and central themes. Exclude minor details or examples unless critical to the core message. Use clear, neutral language, structuring the summary with an introductory sentence stating the document's purpose, followed by main points in a logical order. Conclude with a brief statement on the document's significance or broader implications. Ensure accuracy by directly referencing the document's content and avoid personal opinions. If the document includes specific sections (e.g., abstract, conclusion), prioritize those for key insights.""",
|
6 |
+
|
7 |
+
"Outline": """Create a detailed outline of the provided document. The outline should feature a clear hierarchy with main sections, subsections, and bullet points summarizing key concepts, arguments, or findings under each. Use Roman numerals for main sections and letters or numbers for subsections. Include a brief introductory statement (50β100 words) describing the document's scope and purpose. Ensure the outline is comprehensive, logically organized, and captures all major points from the document without extraneous details. If the document has a table of contents or headings, align the outline with its structure.""",
|
8 |
+
|
9 |
+
"Analysis": """Provide a critical analysis of the provided document, focusing on its main arguments, evidence, or methodology. The analysis should be 300β400 words, evaluating strengths and weaknesses, the author's assumptions, biases, or rhetorical strategies, and the document's relevance or impact in its field or broader context. Support your points with direct evidence from the document, such as quotes or data. Organize the analysis with an introduction, body paragraphs (strengths, weaknesses, implications), and a conclusion. Maintain an objective tone, avoiding excessive summarization, and ensure all claims are grounded in the document's content.""",
|
10 |
+
|
11 |
+
"Study Guide": """Develop a comprehensive study guide for the provided document. The guide should include: (1) a brief overview (50β100 words) of the document's scope and purpose, (2) a list of 5β7 key themes or concepts with concise explanations (50β100 words each), (3) a glossary of 10β15 essential terms from the document with clear definitions, (4) 3β5 critical discussion questions to encourage deeper thinking, and (5) a checklist of key takeaways or study tips. Organize the guide with clear headings and bullet points, ensuring it is student-friendly and focused on retention and understanding, drawing directly from the document's content.""",
|
12 |
+
|
13 |
+
"Table": """Create a comparative table based on the provided document, synthesizing key elements (e.g., theories, findings, arguments, or concepts) across relevant criteria (e.g., assumptions, applications, strengths, weaknesses). The table should compare 3β5 elements, using rows for each element and columns for each criterion. Include a brief introductory paragraph (50β100 words) explaining the table's purpose and scope. Ensure the table is concise, visually organized, and populated with precise information directly from the document. If applicable, use data or examples from the document to enhance clarity.""",
|
14 |
+
|
15 |
+
"Questions": """Generate a set of 10 high-quality questions based on the provided document. Include: (1) 3 factual questions to test recall of key details, (2) 3 conceptual questions to assess understanding of main ideas or arguments, (3) 2 analytical questions to encourage critical thinking about the document's implications or weaknesses, and (4) 2 open-ended questions to prompt discussion or creative reflection. Label each question by type (factual, conceptual, analytical, open-ended), and ensure questions are clear, specific, and aligned with the document's core themes. Provide a brief introduction (50 words) explaining the questions' purpose, referencing the document's content."""
|
16 |
+
}
|