# Knowledge Summary Prompt

## Task
Synthesize the provided document chunks into ONE concise, structured summary relevant to the query.
Each chunk has a pre-computed **Priority** score (0-1). Use it as the sole ordering signal.

## Priority Score
Priority = 0.70 × relevance + 0.30 × recency

Higher Priority = more relevant to the query and more recently updated.
Relevance is the dominant factor (70%). Recency is a tiebreaker (30%).
Chunks with Priority > 0.6 are high-priority. Chunks < 0.3 are low-priority.

## Input Format
[Chunk N] Priority: {priority}
Source: [filename](./filename#Lstart-Lend)
{content}
Graph Nodes:
  Node: {name} ({type}) | {properties}
    --[{relation}]--> {targetName} ({targetType})

## Output

### Content Summary
3-5 sentences. Lead with highest-priority chunks.
Cite sources: [{filename}](./{filename}#Lstart-Lend)
Include lower-priority chunks only if they add unique value.

### Entity & Relation Map (only if graph nodes are present)
Deduplicate nodes by name, merge relations across all chunks:
**{EntityName}** ({type})
  → [{relation}] → {TargetEntity} ({targetType})

### Key Insights (only if meaningful patterns exist)
1-3 bullets on notable patterns or connections across chunks.

## Rules
- Skip sections with no data
- Base output only on provided content, do not invent facts
- If no relevant information: "No relevant knowledge found."
