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,23 +1,42 @@
// For OpenAI LLMs. Not currently overriding prompts
// For OpenAI LLMs
local prompts = import "default-prompts.jsonnet";
local base = import "base/base.jsonnet";
local images = import "values/images.jsonnet";
local url = import "values/url.jsonnet";
prompts + {
{
// "system-template":: "PROMPT GOES HERE.",
// "prompt-definition-template": "PROMPT GOES HERE",
"templates" +:: {
// "prompt-relationship-template":: "PROMPT GOES HERE",
"question" +:: {
// "prompt": "PROMPT GOES HERE",
},
// "prompt-topic-template":: "PROMPT GOES HERE",
"extract-definitions" +:: {
// "prompt": "PROMPT GOES HERE",
},
// "prompt-knowledge-query-template":: "PROMPT GOES HERE",
"extract-relationships" +:: {
// "prompt": "PROMPT GOES HERE",
},
// "prompt-document-query-template":: "PROMPT GOES HERE",
"extract-topics" +:: {
// "prompt": "PROMPT GOES HERE",
},
// "prompt-rows-template":: "PROMPT GOES HERE",
"extract-rows" +:: {
// "prompt": "PROMPT GOES HERE",
},
"kg-prompt" +:: {
// "prompt": "PROMPT GOES HERE",
},
"document-prompt" +:: {
// "prompt": "PROMPT GOES HERE",
},
}
}