blob-of-text가 망하는 곳
5개 문서를 separator 없이 user message에 paste하면 모델이 conflate, 잘못된 거 pick, union 요약하는 레시피야. Multi-document 프롬프트는 explicit boundary, 이름, ordering decision 필요해.
Boundary tag
XML 같은 tag나 stable id 박힌 fenced section 써. 각 문서가 모델이 reference 가능하고 user가 verify 가능한 이름 받아.
Ordering decision
- relevance로 — most-relevant 먼저. RAG default.
- recency로 — support ticket, news에 유용.
- authority로 — official doc 먼저, community 둘째. reference 질문에 유용.
- source로 — multi-source 결과 group. 비교 필요할 때.
boundary 읽으라는 instruction
Synthesis 프롬프트가 구조 사용법 explicit하게 알려야. "각 문서가 <doc id=…>로 wrap. id로 cite. 각 문서 independent로 다뤄 — corroborate 안 하면 문서 사이로 claim merge X."