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:
parent
095f013739
commit
4c56e81872
|
|
@ -35,10 +35,12 @@ _SEED_GENERATE = (
|
|||
_SEED_GENERATE_PER_SUBQ = (
|
||||
"Answer each sub-question using ONLY its document chunks.\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"
|
||||
"Copy the exact bracket labels shown in the document chunks — "
|
||||
"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"
|
||||
"Answer:"
|
||||
)
|
||||
|
|
@ -205,5 +207,11 @@ def seed_default_profiles(conn: sqlite3.Connection) -> None:
|
|||
(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()
|
||||
logger.info("Default profiles (A/B/C) seeded.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue