mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Improve tg-invoke-prompt help
This commit is contained in:
parent
09729096b5
commit
391f9e33f4
1 changed files with 5 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
Invokes the LLM prompt service by specifying the prompt template to use
|
Invokes the LLM prompt service by specifying the prompt template to use
|
||||||
and values for the variables in the prompt template. The
|
and values for the variables in the prompt template. The
|
||||||
prompt template is identifier by its template identifier e.g.
|
prompt template is identified by its template identifier e.g.
|
||||||
question, extract-definitions. Template variable values are specified
|
question, extract-definitions. Template variable values are specified
|
||||||
using key=value arguments on the command line, and these replace
|
using key=value arguments on the command line, and these replace
|
||||||
{{key}} placeholders in the template.
|
{{key}} placeholders in the template.
|
||||||
|
|
@ -44,14 +44,15 @@ def main():
|
||||||
'id',
|
'id',
|
||||||
metavar='template-id',
|
metavar='template-id',
|
||||||
nargs=1,
|
nargs=1,
|
||||||
help=f'Prompt identifier e.g. question',
|
help=f'Prompt identifier e.g. question, extract-definitions',
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'variable',
|
'variable',
|
||||||
nargs='*',
|
nargs='*',
|
||||||
help='''Prompt template terms of the form key=value, can be specified
|
metavar="variable=value",
|
||||||
multiple times''',
|
help='''Prompt template terms of the form variable=value, can be
|
||||||
|
specified multiple times''',
|
||||||
)
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue