trustgraph/templates/patterns/prompt-template-kg-query.jsonnet
cybermaggedon f7a30006ad
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
2024-08-30 17:47:35 +01:00

21 lines
1,014 B
Jsonnet
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
pattern: {
name: "prompt-template-kq-query",
icon: "📜💬",
title: "Override knowledge query prompt",
description: "This pattern overrides the default knowledge query LLM prompt allowing you to provide your own prompt.",
requires: ["pulsar", "trustgraph"],
features: ["kg-query-prompt"],
args: [
{
name: "prompt-knowledge-query-template",
type: "string",
width: 2000,
description: "Knowledge graph extraction prompt",
default: "Study the following set of knowledge statements. The statements are written in Cypher format that has been extracted from a knowledge graph. Use only the provided set of knowledge statements in your response. Do not speculate if the answer is not found in the provided set of knowledge statements.\n\nHere's the knowledge statements:\n{graph}\n\nUse only the provided knowledge statements to respond to the following:\n{query}\n",
required: true,
}
]
},
module: "components/null.jsonnet",
}