Skip to content

Commit 7954323

Browse files
committed
docs: clarify references formatting in summary prompt
- Add explicit instruction that each reference should be on a separate line - Update output template to show line breaks between references - Make reference formatting requirements more explicit for LLM
1 parent 9a5e915 commit 7954323

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pia_mcp_server/prompts/handlers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def _generate_summary_prompt(arguments: Dict[str, str]) -> str:
110110
111111
3. **References section format:**
112112
- Numbered list matching the inline citations.
113+
- **Each reference on a separate line**.
113114
- Each reference must include:
114115
- **Document title**
115116
- **Page number** (or "n/a" if page not given in source)
@@ -140,6 +141,7 @@ def _generate_summary_prompt(arguments: Dict[str, str]) -> str:
140141
References:
141142
[1] Document Title — Page X — Source Name — URL
142143
[2] Document Title — Page X — Source Name — URL
144+
[3] Document Title — Page X — Source Name — URL
143145
...
144146
---
145147

0 commit comments

Comments
 (0)