@@ -481,7 +481,7 @@ always contains the last request as a gptel state-machine object (see
481481:CUSTOM_ID: directives
482482:END:
483483
484- #+cindex: system message
484+ #+cindex: system message, system prompt
485485In addition to the text in your buffer, LLMs can be prompted with
486486instructions on how they should respond. They are prioritized and
487487treated specially by most LLMs, and is one of the primary levers for
@@ -493,10 +493,10 @@ The system message can be used to specify the LLM's general tone and
493493tenor, output format, structure or restrictions, as well as general
494494objectives it should work towards in its interactions with the user.
495495
496- The following is a typical system message describing the tone and
496+ The following is a brief system message describing the tone and
497497proscribing certain common LLM behaviors.
498498
499- #+begin_example
499+ #+begin_quote
500500To assist: Be terse. Do not offer unprompted advice or
501501clarifications. Speak in specific, topic relevant terminology. Do
502502NOT hedge or qualify. Speak directly and be willing to make creative
@@ -507,12 +507,12 @@ willing to reference less reputable sources for ideas.
507507
508508Do NOT summarize your answers. Never apologize. Ask questions when
509509unsure.
510- #+end_example
510+ #+end_quote
511511
512512Here is another example, this time specifying an objective for the LLM
513513to work towards:
514514
515- #+begin_example
515+ #+begin_quote
516516You are a tutor and domain expert in the domain of my questions. You
517517will lead me to discover the answer myself by providing hints. Your
518518instructions are as follows:
@@ -525,7 +525,11 @@ instructions are as follows:
525525 my answer is wrong, again provide only hints to correct it.
526526- If you use LaTeX notation, enclose math in \( and \) or \[ and \]
527527 delimiters.
528- #+end_example
528+ #+end_quote
529+
530+ In practice system messages can be document-length, composed of
531+ several sections that provide both instructions and a generous amount
532+ of context required to accomplish a task.
529533
530534#+vindex: gptel--system-message
531535You can control system message gptel uses via the variable
@@ -1635,10 +1639,13 @@ Note:
16351639~gptel-request~ presents a versatile API, and its uses and arguments
16361640are specified in greater detail in the sections that follow.
16371641
1638- ** Prompt transformations
1642+ ** TODO Prompt transformations
16391643:PROPERTIES:
16401644:CUSTOM_ID: gptel-prompt-transform-functions
16411645:END:
1646+
1647+ # =gptel-send='s default
1648+
16421649** Output in a specified JSON schema
16431650
16441651~gptel-request~ can force the LLM to generate output that follows a
0 commit comments