feat(prompts): enforce bullet-point output in generate template

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Woody 2026-04-28 16:42:55 +08:00
parent 095f013739
commit 4c56e81872
1 changed files with 9 additions and 1 deletions

View File

@ -35,10 +35,12 @@ _SEED_GENERATE = (
_SEED_GENERATE_PER_SUBQ = ( _SEED_GENERATE_PER_SUBQ = (
"Answer each sub-question using ONLY its document chunks.\n" "Answer each sub-question using ONLY its document chunks.\n"
"Format as markdown sections with ## Sub-question N: headers.\n" "Format as markdown sections with ## Sub-question N: headers.\n"
"Under each ## heading, write your answer as bullet points "
"using - (one bullet point per finding or fact).\n"
"Cite your sources inline using bracket labels, e.g. [filename, page N].\n" "Cite your sources inline using bracket labels, e.g. [filename, page N].\n"
"Copy the exact bracket labels shown in the document chunks — " "Copy the exact bracket labels shown in the document chunks — "
"do not modify filenames or add/remove extensions.\n" "do not modify filenames or add/remove extensions.\n"
"Place the citation at the end of each relevant bullet point.\n" "Place the citation at the end of each bullet point.\n"
"{context_sections}\n\n" "{context_sections}\n\n"
"Answer:" "Answer:"
) )
@ -205,5 +207,11 @@ def seed_default_profiles(conn: sqlite3.Connection) -> None:
(row["id"], step, _SEED_TEMPLATES[step]), (row["id"], step, _SEED_TEMPLATES[step]),
) )
conn.execute(
"UPDATE system_prompts SET prompt_template = ? "
"WHERE step_name = 'generate_per_subq'",
(_SEED_GENERATE_PER_SUBQ,),
)
conn.commit() conn.commit()
logger.info("Default profiles (A/B/C) seeded.") logger.info("Default profiles (A/B/C) seeded.")