mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-28 09:56:22 +02:00
Maint/neater prompt jsonnet (#127)
* Changed the JSONNET for prompt-template so that prompt templates are simpler. This tidies default-prompts.jsonnet so it's easier to see where the prompts are. * Updated prompt override templates to match new structure
This commit is contained in:
parent
b07d539802
commit
2942c4dcf0
7 changed files with 303 additions and 99 deletions
|
|
@ -1,7 +1,44 @@
|
|||
// For SLM. Not currently overriding prompts
|
||||
|
||||
// For basic SLMs, use prompt-generic
|
||||
local prompts = import "default-prompts.jsonnet";
|
||||
|
||||
prompts + {
|
||||
|
||||
// "system-template":: "PROMPT GOES HERE.",
|
||||
|
||||
"templates" +:: {
|
||||
|
||||
"question" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"extract-definitions" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"extract-relationships" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"extract-topics" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"extract-rows" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"kg-prompt" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
"document-prompt" +:: {
|
||||
// "prompt": "PROMPT GOES HERE",
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
local prompts = import "components/prompt-generic.jsonnet";
|
||||
|
||||
prompts
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue