@app.prompt
decorator. Its main responsibility is to load template files and generate standardized PromptMessage
objects based on inputs such as questions and retrieved passages. These messages can be directly sent to LLM models for generation.
.jinja
extension, for example:
load_prompt_template
method to load the template, and implement a tool function (Tool) in the Prompt Server to assemble the prompt:
servers/prompt/parameter.yaml
: