Spaces:
Sleeping
Sleeping
Add 'list' template for better summarization with specific content extraction
Browse files- gradio_app.py +4 -0
gradio_app.py
CHANGED
|
@@ -90,6 +90,10 @@ def create_json_prompt(message, template_type):
|
|
| 90 |
"instruction": "Extract the key points from the content and return them as a JSON array of strings. Each string should be a concise summary of an important point from the content.",
|
| 91 |
"schema": """Format: ["actual key point from content", "another key point from content", "etc..."]"""
|
| 92 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
"questions": {
|
| 94 |
"instruction": "Generate 3 diverse user and assistant prompt pairs based on the specific topic provided. Create realistic questions a user might ask and helpful assistant responses.",
|
| 95 |
"schema": """Format: [{"user": "realistic question about the topic", "assistant": "helpful response"}, {"user": "different question", "assistant": "different response"}, {"user": "third question", "assistant": "third response"}]"""
|
|
|
|
| 90 |
"instruction": "Extract the key points from the content and return them as a JSON array of strings. Each string should be a concise summary of an important point from the content.",
|
| 91 |
"schema": """Format: ["actual key point from content", "another key point from content", "etc..."]"""
|
| 92 |
},
|
| 93 |
+
"list": {
|
| 94 |
+
"instruction": "Extract and list the key topics or points from the content. Return them as a JSON array where each element is a specific, factual point from the content. Do not use placeholder text.",
|
| 95 |
+
"schema": """Return a JSON array of strings, each representing a distinct point from the content. Example format: ["First specific point from the content", "Second specific point", "Third point"]"""
|
| 96 |
+
},
|
| 97 |
"questions": {
|
| 98 |
"instruction": "Generate 3 diverse user and assistant prompt pairs based on the specific topic provided. Create realistic questions a user might ask and helpful assistant responses.",
|
| 99 |
"schema": """Format: [{"user": "realistic question about the topic", "assistant": "helpful response"}, {"user": "different question", "assistant": "different response"}, {"user": "third question", "assistant": "third response"}]"""
|