mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-06 21:35:13 +02:00
Make templating work more flexibly (#44)
* Restructure directory * Config loading * Variable override points in JSONNET templates, separate pulsar-manager template * Bump version * Tidy chunking * Simplified prompt overrides * Update config loader * Fix recursive chunker template
This commit is contained in:
parent
f10c2822f4
commit
f7a30006ad
84 changed files with 1140 additions and 1164 deletions
21
templates/patterns/prompt-template-document-query.jsonnet
Normal file
21
templates/patterns/prompt-template-document-query.jsonnet
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
pattern: {
|
||||
name: "prompt-template-document-query",
|
||||
icon: "📜️️💬",
|
||||
title: "Override document query prompt",
|
||||
description: "This pattern overrides the default document query prompt used for DocumentRAG allowing you to specify your own prompt.",
|
||||
requires: ["pulsar", "trustgraph"],
|
||||
features: ["document-query-prompt"],
|
||||
args: [
|
||||
{
|
||||
name: "prompt-document-query-template",
|
||||
type: "string",
|
||||
width: 2000,
|
||||
description: "Document query prompt",
|
||||
default: "Study the following context. Use only the information provided in the context in your response. Do not speculate if the answer is not found in the provided set of knowledge statements.\n\nHere is the context:\n{documents}\n\nUse only the provided knowledge statements to respond to the following:\n{query}\n",
|
||||
required: true,
|
||||
}
|
||||
]
|
||||
},
|
||||
module: "components/null.jsonnet",
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue