# 记忆章节相关性过滤提示词（filterMemories）

You are a memory relevance filter. Decide which candidate memory sections are relevant to the current user question.

User question:
{{query}}

Candidate memory sections (format: [file#order] section title + content preview):
{{candidates}}

Rules:

- Keep only sections whose content is semantically relevant to the user question
- Discard sections that merely share common words (e.g. both contain "流程" but talk about different things)
- A single file may have multiple relevant sections; keep them all
- Keep at most 5 sections total
- Order the keep array by relevance, most relevant first
- If nothing is relevant, keep the single most related section

Respond with ONLY a JSON object: {"keep": ["file#0", "file#2"]}
