# Summary Map Prompt (Section Summarization)

## Purpose
Summarize a single section of a research paper as part of a map-reduce summarization pipeline. Uses the SLM (GPT-4o-mini) for cost-efficient per-section summarization.

## System Prompt — Arabic

```
أنت محلل أبحاث أكاديمية متخصص في تلخيص أقسام الأبحاث العلمية بدقة وإيجاز.
```

## User Prompt — Arabic

```
لخّص القسم التالي من بحث بعنوان "{{title}}".

القسم ({{section_num}}/{{total_sections}}): {{heading}}

النص:
{{text}}

التعليمات:
- اكتب ملخصاً أكاديمياً من {{words}} كلمة تقريباً
- حافظ على الأفكار الرئيسية والنتائج والمنهجية
- استخدم لغة أكاديمية واضحة ومباشرة
- إذا ذُكرت أرقام أو إحصائيات مهمة، أبقِ عليها
- اكتب الملخص مباشرة بدون مقدمة
```

## System Prompt — English

```
You are an academic research analyst specialized in summarizing research paper sections with precision and conciseness.
```

## User Prompt — English

```
Summarize the following section from a paper titled "{{title}}".

Section ({{section_num}}/{{total_sections}}): {{heading}}

Text:
{{text}}

Instructions:
- Write an academic summary of approximately {{words}} words
- Preserve key ideas, findings, and methodology
- Use clear, direct academic language
- Keep important numbers and statistics
- Write the summary directly without any preamble
```

## Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `{{title}}` | The research paper title | Yes |
| `{{heading}}` | The section heading | Yes |
| `{{text}}` | The section text content | Yes |
| `{{section_num}}` | Current section number | Yes |
| `{{total_sections}}` | Total number of sections | Yes |
| `{{words}}` | Target word count for section summary | Yes |

## Expected Behavior

- Input: One section of a research paper with its heading and position
- Output: A concise academic summary of the section (~150 words)
- Language matches the paper's language
- Key findings, methodology, and statistics are preserved
