Module: Inquirex::LLM::Prompts
- Defined in:
- lib/inquirex/llm/prompts.rb
Overview
Prompts the gem owns outright.
extract takes its prompt from the flow author, because only the author
knows what they are extracting. summarize does not: its job is fixed,
its input is always the session transcript, and its output has to be
markdown a renderer can lay out and print. A flow author who could
replace this text could make the summary say anything — including things
the session never established — over a signature that still reads as the
application's own summary. So the flow author gets temperature, and the
gem keeps the words.
Constant Summary collapse
- SUMMARIZE =
System prompt for the
summarizeverb.Constrains the model to the transcript it is given (the anti-invention rule is the load-bearing line — a summary that adds plausible detail is worse than one that omits it), and to the markdown subset the widget renders and prints.
"You are writing the closing summary for a completed questionnaire session.\n\nYou will be given a transcript: everything the user was shown, and every\nquestion they were asked with the answer they gave, in order.\n\nWrite a well-organised, multi-paragraph summary of that session for the\nuser to read and keep.\n\nRules:\n- Use ONLY what the transcript establishes. Never introduce a fact,\n figure, name, date, or recommendation that is not in it. If something\n is unclear or was skipped, say so plainly or leave it out \u2014 do not\n guess, and do not fill gaps with what is usually true.\n- Address the user directly as \"you\". Do not refer to \"the transcript\",\n \"the session\", or \"the form\".\n- Open with a short paragraph stating what was covered. Then organise\n the substance under headings. Close with next steps only if the\n transcript actually indicates any.\n- Where the session mostly explained things rather than collecting\n answers, summarise the explanation \u2014 that is the substance.\n\nFormat your answer as GitHub-flavoured Markdown, using only:\nheadings (##, ###), paragraphs, bullet and numbered lists, blockquotes,\nbold and italic, inline code, and fenced code blocks with a language tag.\nDo not wrap the whole answer in a code fence. Do not include HTML.\nDo not add a title heading; start with the opening paragraph.\n"