mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 01:01:03 +02:00
Updated prompt override templates to match new structure
This commit is contained in:
parent
ef7a7044ca
commit
d1125045e2
5 changed files with 167 additions and 38 deletions
|
|
@ -1,18 +1,42 @@
|
||||||
|
|
||||||
// For Cohere. Not currently overriding prompts
|
// For Cohere. Not currently overriding prompts
|
||||||
|
|
||||||
{
|
local prompts = import "default-prompts.jsonnet";
|
||||||
|
|
||||||
// "prompt-definition-template": "PROMPT GOES HERE",
|
prompts + {
|
||||||
|
|
||||||
// "prompt-relationship-template":: "PROMPT GOES HERE",
|
// "system-template":: "PROMPT GOES HERE.",
|
||||||
|
|
||||||
// "prompt-topic-template":: "PROMPT GOES HERE",
|
"templates" +:: {
|
||||||
|
|
||||||
// "prompt-knowledge-query-template":: "PROMPT GOES HERE",
|
"question" +:: {
|
||||||
|
// "prompt": "PROMPT GOES HERE",
|
||||||
|
},
|
||||||
|
|
||||||
// "prompt-document-query-template":: "PROMPT GOES HERE",
|
"extract-definitions" +:: {
|
||||||
|
// "prompt": "PROMPT GOES HERE",
|
||||||
|
},
|
||||||
|
|
||||||
// "prompt-rows-template":: "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",
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,42 @@
|
||||||
|
|
||||||
// For VertexAI Gemini. Not currently overriding prompts
|
// For VertexAI Gemini. Not currently overriding prompts
|
||||||
{
|
|
||||||
|
|
||||||
// "prompt-definition-template": "PROMPT GOES HERE",
|
local prompts = import "default-prompts.jsonnet";
|
||||||
|
|
||||||
// "prompt-relationship-template":: "PROMPT GOES HERE",
|
prompts + {
|
||||||
|
|
||||||
// "prompt-topic-template":: "PROMPT GOES HERE",
|
// "system-template":: "PROMPT GOES HERE.",
|
||||||
|
|
||||||
// "prompt-knowledge-query-template":: "PROMPT GOES HERE",
|
"templates" +:: {
|
||||||
|
|
||||||
// "prompt-document-query-template":: "PROMPT GOES HERE",
|
"question" +:: {
|
||||||
|
// "prompt": "PROMPT GOES HERE",
|
||||||
|
},
|
||||||
|
|
||||||
// "prompt-rows-template":: "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",
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,42 @@
|
||||||
|
|
||||||
// For Mixtral. Not currently overriding prompts
|
// For Mixtral. Not currently overriding prompts
|
||||||
|
|
||||||
{
|
local prompts = import "default-prompts.jsonnet";
|
||||||
|
|
||||||
// "prompt-definition-template": "PROMPT GOES HERE",
|
prompts + {
|
||||||
|
|
||||||
// "prompt-relationship-template":: "PROMPT GOES HERE",
|
// "system-template":: "PROMPT GOES HERE.",
|
||||||
|
|
||||||
// "prompt-topic-template":: "PROMPT GOES HERE",
|
"templates" +:: {
|
||||||
|
|
||||||
// "prompt-knowledge-query-template":: "PROMPT GOES HERE",
|
"question" +:: {
|
||||||
|
// "prompt": "PROMPT GOES HERE",
|
||||||
|
},
|
||||||
|
|
||||||
// "prompt-document-query-template":: "PROMPT GOES HERE",
|
"extract-definitions" +:: {
|
||||||
|
// "prompt": "PROMPT GOES HERE",
|
||||||
|
},
|
||||||
|
|
||||||
// "prompt-rows-template":: "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",
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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";
|
prompts + {
|
||||||
local images = import "values/images.jsonnet";
|
|
||||||
local url = import "values/url.jsonnet";
|
|
||||||
|
|
||||||
{
|
// "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",
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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