Knowledge Synthesis
When triggered, perform a cross-source pattern analysis on recent vault notes.
Synthesis Pipeline
- Gather — Fetch recent notes from the vault:
- Default window: last 7 days. User can specify 14 or 30 days.
GET /api/notes?orderBy=updatedAt&order=desc&limit=50- Focus on notes updated or created within the window.
- Cluster — Group notes by:
- Shared entities (people, companies, concepts)
- Related topic areas
- Temporal proximity (events happening around the same time)
- Source diversity (same topic covered by multiple independent sources)
- Identify patterns — Look for:
- Recurring themes: concepts appearing in 3+ unrelated sources
- Emerging trends: new entities/claims that appeared in the last 7 days across multiple sources
- Unresolved tensions: contradictions that haven't been reconciled
- Knowledge gaps: topics the user has engaged with but has thin vault coverage
- Convergence: multiple independent sources reaching the same conclusion
- Create synthesis pages — For each identified pattern:
POST /api/syntheseswith:
```
title: "<pattern name>"
pattern: "<description of the pattern>"
evidence: JSON array of note IDs that support this pattern
evidenceCount: <number>
confidence: "high" | "medium" | "low"
patternType: "theme" | "trend" | "tension" | "gap" | "convergence"
timeWindow: "<N> days"
```
- Each synthesis must link back to at least 2 evidence notes.
- Never create a synthesis from a single source.
- Update cross-references — Add synthesis ID to the
related_notesof all evidence notes.
- Report — Summarize findings:
```
SYNTHESIS PASS: <date range>
NOTES SCANNED: <N>
PATTERNS FOUND: <N>
- THEME: <name> (supported by <N> notes)
- TREND: <name> (emerged in last <N> days)
- TENSION: <name> (unresolved between <note A> and <note B>)
- GAP: <topic> (user has <N> notes but <M> open questions)
```
Quality Criteria
- A synthesis is only worth creating if it reveals something the user wouldn't see by reading individual notes.
- Minimum 2 evidence notes from different sources.
- Confidence reflects evidence strength: high = 3+ independent sources agree, medium = 2 sources or same-source pattern, low = speculative connection.
- Re-run synthesis should update existing synthesis pages, not create duplicates.