diff --git a/backend/app/core/sqlite_db.py b/backend/app/core/sqlite_db.py index 43dca96..8b54e82 100644 --- a/backend/app/core/sqlite_db.py +++ b/backend/app/core/sqlite_db.py @@ -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.")