Text Summarization
Learn how to effectively use Zonia's text summarization capabilities
Overview
Zonia's text summarization feature helps you condense long texts while retaining key information. It uses advanced AI to:
- • Extract main ideas and important points
- • Maintain context and relationships between ideas
- • Generate concise, readable summaries
- • Support multiple summarization styles
Usage Examples
Basic Summarization
Input:
"Summarize this article about climate change..."
Options:
{ maxLength: "3 paragraphs", style: "informative", format: "bullet-points" }
Advanced Features
Key Points Extraction
Identifies and extracts the most important points from the text
Custom Length
Specify desired summary length (short, medium, long)
Format Options
Choose between paragraph, bullet points, or outline format
Topic Focus
Focus summary on specific aspects or topics
Code Examples
// Using the API for text summarization const zonia = new ZoniaAPI(); // Basic summarization const summary = await zonia.summarize({ text: "Your long text here...", options: { maxLength: "medium", format: "paragraphs" } }); // Advanced summarization with focus const focusedSummary = await zonia.summarize({ text: "Your long text here...", options: { maxLength: "short", format: "bullet-points", focus: ["key findings", "methodology"], style: "academic" } }); // Stream summary for long texts const streamSummary = await zonia.summarizeStream({ text: "Very long text here...", options: { maxLength: "long", format: "outline" }, onProgress: (chunk) => { console.log(chunk.content); } });
Best Practices
Recommended
- ✓ Provide complete text for better context
- ✓ Specify desired length and format
- ✓ Use focus topics for targeted summaries
- ✓ Review and verify key information
Avoid
- ✗ Submitting incomplete text
- ✗ Using for very short content
- ✗ Expecting perfect accuracy
- ✗ Skipping summary verification