mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
* 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
21 lines
1.1 KiB
Jsonnet
21 lines
1.1 KiB
Jsonnet
{
|
||
pattern: {
|
||
name: "prompt-template-rows-template",
|
||
icon: "📜️️💬",
|
||
title: "Override table/row extraction prompt",
|
||
description: "This pattern overrides the default table/row extraction prompt to be changed. This is used for DatabaseRAG pipelines.",
|
||
requires: ["pulsar", "trustgraph"],
|
||
features: ["extract-rows-prompt"],
|
||
args: [
|
||
{
|
||
name: "prompt-rows-template",
|
||
type: "string",
|
||
width: 2000,
|
||
description: "Row data extraction prompt",
|
||
default: "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>",
|
||
required: true,
|
||
}
|
||
]
|
||
},
|
||
module: "components/null.jsonnet",
|
||
}
|