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:
cybermaggedon 2024-10-27 09:06:09 +00:00 committed by GitHub
parent b07d539802
commit 2942c4dcf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 303 additions and 99 deletions

View file

@ -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