mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Improved documentation in tg-invoke-prompt. Added tg-invoke-llm.
These are diagnostics for the text-completion and prompt services.
This commit is contained in:
parent
c308180b54
commit
c04856b288
3 changed files with 72 additions and 3 deletions
|
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Uses the GraphRAG service to answer a query
|
||||
Invokes the LLM prompt service by specifying a prompt identifier and template
|
||||
terms. The prompt identifier identifies which prompt template to use.
|
||||
Standard template identifiers are: question, extract-relationship.
|
||||
The prompt terms specify keyword terms in the template to be replaced, and
|
||||
provide the values to replace them with.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
|
|
@ -38,13 +42,14 @@ def main():
|
|||
parser.add_argument(
|
||||
'id',
|
||||
nargs=1,
|
||||
help=f'Prompt identifier',
|
||||
help=f'Prompt identifier e.g. question',
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'term',
|
||||
nargs='*',
|
||||
help=f'Prompt terms',
|
||||
help='''Prompt template terms of the form key=value, can be specified
|
||||
multiple times''',
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue