trustgraph/templates/patterns/llm-llamafile.jsonnet
Jack Colquitt 9612a11581
Added basic Llamafile integration (#63)
* Added basic Llamafile integration
* Added llamafile template support
* New templates following llamafile addition
---------
Co-authored-by: Cyber MacGeddon <cybermaggedon@gmail.com>
2024-09-16 16:18:01 +01:00

41 lines
1.2 KiB
Jsonnet

{
pattern: {
name: "llamafile",
icon: "🤖💬",
title: "Add Llamafile-invoked LLMs for text completion",
description: "This pattern integrates a Llamafile service for text completion operations. You need to have a running Llamafile implementation executing the necessary model in order to be able to use this service.",
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
{
name: "llamafile-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "llamafile-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
{
name: "llamafile-url",
label: "URL",
type: "text",
width: 120,
description: "URL of the Llamafile service",
default: "http://llamafile:8080",
required: true,
},
],
category: [ "llm" ],
},
module: "components/llamafile.jsonnet",
}