Updates for config util repo (#47)

* Fix pulsar manager template import
* Add pattern categories.  Update parameters with new schema.
* Add more parameters to config
This commit is contained in:
cybermaggedon 2024-09-01 21:29:29 +01:00 committed by GitHub
parent 06a9e913dc
commit 121f7bb776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 228 additions and 39 deletions

View file

@ -8,6 +8,7 @@
features: ["prometheus", "grafana"],
args: [
],
category: ["monitoring"],
},
module: "components/grafana.jsonnet",
}

View file

@ -7,6 +7,7 @@
requires: ["pulsar", "trustgraph"],
features: ["cassandra", "rag"],
args: [],
category: ["knowledge-graph"],
},
module: "components/cassandra.jsonnet",
}

View file

@ -7,6 +7,7 @@
requires: ["pulsar", "trustgraph"],
features: ["neo4j", "rag"],
args: [],
category: [ "knowledge-graph" ],
},
module: "components/neo4j.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "azure-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "azure-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/azure.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "bedrock-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "bedrock-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/bedrock.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "claude-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "claude-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/claude.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "cohere-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "cohere-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/cohere.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "ollama-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "ollama-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/ollama.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "openai-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "openai-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/openai.jsonnet",
}

View file

@ -7,7 +7,26 @@
requires: ["pulsar", "trustgraph"],
features: ["llm"],
args: [
]
{
name: "vertexai-max-output-tokens",
label: "Maximum output tokens",
type: "integer",
description: "Limit on number tokens to generate",
default: 4096,
required: true,
},
{
name: "vertexai-temperature",
label: "Temperature",
type: "slider",
description: "Controlling predictability / creativity balance",
min: 0,
max: 1,
step: 0.05,
default: 0.5,
},
],
category: [ "llm" ],
},
module: "components/vertexai.jsonnet",
}

View file

@ -9,19 +9,20 @@
args: [
{
name: "chunk-size",
type: "int",
type: "integer",
description: "Chunk size value",
default: 2000,
required: true,
},
{
name: "chunk-overlap",
type: "int",
type: "integer",
description: "Overlap size value",
default: 100,
required: true,
}
]
],
category: [ "chunking" ],
},
module: "components/cassandra.jsonnet",
}

View file

@ -9,13 +9,15 @@
args: [
{
name: "prompt-definition-template",
type: "string",
width: 2000,
type: "multiline",
size: 2000,
rows: 10,
description: "Definition extraction prompt",
default: "<instructions>\nStudy the following text and derive definitions for any discovered entities.\nDo not provide definitions for entities whose definitions are incomplete\nor unknown.\nOutput relationships in JSON format as an arary of objects with fields:\n- entity: the name of the entity\n- definition: English text which defines the entity\n</instructions>\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 use special characters in the abstract text. The\nabstract will be written as plain text. Do not add markdown formatting\nor headers or prefixes. Do not include null or unknown definitions.\n</requirements>",
required: true,
}
]
],
category: [ "prompting" ],
},
module: "components/null.jsonnet",
}

View file

@ -9,13 +9,15 @@
args: [
{
name: "prompt-document-query-template",
type: "string",
width: 2000,
type: "multiline",
size: 2000,
rows: 10,
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,
}
]
],
category: [ "prompting" ],
},
module: "components/null.jsonnet",
}

View file

@ -9,13 +9,15 @@
args: [
{
name: "prompt-knowledge-query-template",
type: "string",
width: 2000,
type: "multiline",
size: 2000,
rows: 10,
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,
}
]
],
category: [ "prompting" ],
},
module: "components/null.jsonnet",
}

View file

@ -9,13 +9,15 @@
args: [
{
name: "prompt-relationship-template",
type: "string",
width: 2000,
type: "multiline",
size: 2000,
rows: 10,
description: "Relationship extraction prompt",
default: "<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\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 use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
required: true,
}
]
],
category: [ "prompting" ],
},
module: "components/null.jsonnet",
}

View file

@ -9,13 +9,15 @@
args: [
{
name: "prompt-rows-template",
type: "string",
width: 2000,
type: "multiline",
size: 2000,
rows: 10,
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,
}
]
],
category: [ "prompting" ],
},
module: "components/null.jsonnet",
}

View file

@ -8,14 +8,16 @@
features: ["pulsar-manager"],
args: [
{
name: "default-admin-password",
type: "string",
width: 20,
description: "Admin password to apply",
name: "initial-admin-password",
label: "Password",
type: "text",
width: 40,
description: "Admin password to apply at initialisation",
default: "pulsaradmin",
required: true,
}
]
},
],
category: [ "foundation" ],
},
module: "components/pulsar.jsonnet",
}

View file

@ -7,7 +7,8 @@
requires: [],
features: ["pulsar"],
args: [
]
],
category: [ "foundation" ],
},
module: "components/pulsar.jsonnet",
}

View file

@ -7,7 +7,43 @@
requires: ["pulsar"],
features: ["trustgraph"],
args: [
]
{
name: "embeddings-model",
label: "Embeddings model",
type: "select",
description: "Embeddings model for sentence analysis",
options: [
{ id: "all-MiniLM-L6-v2", description: "all-MiniLM-L6-v2" },
],
default: "all-MiniLM-L6-v2",
required: true,
},
{
name: "graph-rag-entity-limit",
label: "GraphRAG entity query limit",
type: "integer",
description: "Limit on entities to fetch from vector store",
default: 50,
required: true,
},
{
name: "graph-rag-triple-limit",
label: "GraphRAG triple query limit",
type: "integer",
description: "Limit on triples to fetch from triple store",
default: 30,
required: true,
},
{
name: "graph-rag-max-subgraph-size",
label: "GraphRAG maximum subgraph size",
type: "integer",
description: "Limit on size of subgraph to present to text-completion model",
default: 3000,
required: true,
},
],
category: [ "foundation" ],
},
module: "components/trustgraph.jsonnet",
}

View file

@ -7,7 +7,9 @@
requires: ["pulsar", "trustgraph"],
features: ["milvus", "vectordb"],
args: [
]
],
category: [ "vector-store" ],
},
module: "components/milvus.jsonnet",
}

View file

@ -7,7 +7,8 @@
requires: ["pulsar", "trustgraph"],
features: ["qdrant", "vectordb"],
args: [
]
],
category: [ "vector-store" ],
},
module: "components/qdrant.jsonnet",
}