diff --git a/Makefile b/Makefile index f361bd80..63c971ba 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # VERSION=$(shell git describe | sed 's/^v//') -VERSION=0.9.3 +VERSION=0.9.4 DOCKER=podman diff --git a/setup.py b/setup.py index 94883544..e11b21bf 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import os with open("README.md", "r") as fh: long_description = fh.read() -version = "0.9.3" +version = "0.9.4" setuptools.setup( name="trustgraph", diff --git a/templates/components/graph-rag.jsonnet b/templates/components/graph-rag.jsonnet index ad5ae6f4..a938a014 100644 --- a/templates/components/graph-rag.jsonnet +++ b/templates/components/graph-rag.jsonnet @@ -58,6 +58,31 @@ local url = import "values/url.jsonnet"; }, + "kg-extract-topics" +: { + + create:: function(engine) + + local container = + engine.container("kg-extract-topics") + .with_image(images.trustgraph) + .with_command([ + "kg-extract-topics", + "-p", + url.pulsar, + ]) + .with_limits("0.5", "128M") + .with_reservations("0.1", "128M"); + + local containerSet = engine.containers( + "kg-extract-topics", [ container ] + ); + + engine.resources([ + containerSet, + ]) + + }, + "graph-rag" +: { create:: function(engine) diff --git a/templates/components/prompt-template.jsonnet b/templates/components/prompt-template.jsonnet index e64a18e8..69f34556 100644 --- a/templates/components/prompt-template.jsonnet +++ b/templates/components/prompt-template.jsonnet @@ -25,6 +25,8 @@ local default_prompts = import "prompts/default-prompts.jsonnet"; $["prompt-definition-template"], "--relationship-template", $["prompt-relationship-template"], + "--topic-template", + $["prompt-topic-template"], "--knowledge-query-template", $["prompt-knowledge-query-template"], "--document-query-template", @@ -68,6 +70,8 @@ local default_prompts = import "prompts/default-prompts.jsonnet"; $["prompt-definition-template"], "--relationship-template", $["prompt-relationship-template"], + "--topic-template", + $["prompt-topic-template"], "--knowledge-query-template", $["prompt-knowledge-query-template"], "--document-query-template", diff --git a/templates/prompts/cohere.jsonnet b/templates/prompts/cohere.jsonnet index f70e1704..2335084b 100644 --- a/templates/prompts/cohere.jsonnet +++ b/templates/prompts/cohere.jsonnet @@ -7,6 +7,8 @@ // "prompt-relationship-template":: "PROMPT GOES HERE", +// "prompt-topic-template":: "PROMPT GOES HERE", + // "prompt-knowledge-query-template":: "PROMPT GOES HERE", // "prompt-document-query-template":: "PROMPT GOES HERE", diff --git a/templates/prompts/default-prompts.jsonnet b/templates/prompts/default-prompts.jsonnet index 980e7940..6f8c7b7b 100644 --- a/templates/prompts/default-prompts.jsonnet +++ b/templates/prompts/default-prompts.jsonnet @@ -8,6 +8,8 @@ "prompt-relationship-template":: "\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\n\n\n{text}\n\n\n\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", + "prompt-topic-template":: "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations.", + "prompt-knowledge-query-template":: "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", "prompt-document-query-template":: "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", diff --git a/templates/prompts/gemini.jsonnet b/templates/prompts/gemini.jsonnet index cfcb81c1..12905c7a 100644 --- a/templates/prompts/gemini.jsonnet +++ b/templates/prompts/gemini.jsonnet @@ -6,6 +6,8 @@ // "prompt-relationship-template":: "PROMPT GOES HERE", +// "prompt-topic-template":: "PROMPT GOES HERE", + // "prompt-knowledge-query-template":: "PROMPT GOES HERE", // "prompt-document-query-template":: "PROMPT GOES HERE", diff --git a/templates/prompts/mixtral.jsonnet b/templates/prompts/mixtral.jsonnet index ee119eee..c5e70477 100644 --- a/templates/prompts/mixtral.jsonnet +++ b/templates/prompts/mixtral.jsonnet @@ -7,6 +7,8 @@ // "prompt-relationship-template":: "PROMPT GOES HERE", +// "prompt-topic-template":: "PROMPT GOES HERE", + // "prompt-knowledge-query-template":: "PROMPT GOES HERE", // "prompt-document-query-template":: "PROMPT GOES HERE", diff --git a/templates/prompts/openai.jsonnet b/templates/prompts/openai.jsonnet index 04bcb9b9..0715525e 100644 --- a/templates/prompts/openai.jsonnet +++ b/templates/prompts/openai.jsonnet @@ -11,6 +11,8 @@ local url = import "values/url.jsonnet"; // "prompt-relationship-template":: "PROMPT GOES HERE", +// "prompt-topic-template":: "PROMPT GOES HERE", + // "prompt-knowledge-query-template":: "PROMPT GOES HERE", // "prompt-document-query-template":: "PROMPT GOES HERE", diff --git a/tg-launch-azure-cassandra.yaml b/tg-launch-azure-cassandra.yaml index 39d8c539..264e81fb 100644 --- a/tg-launch-azure-cassandra.yaml +++ b/tg-launch-azure-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -422,7 +441,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -449,7 +468,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -464,7 +483,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-azure-neo4j.yaml b/tg-launch-azure-neo4j.yaml index a0dee80c..8e5a3fdd 100644 --- a/tg-launch-azure-neo4j.yaml +++ b/tg-launch-azure-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -423,7 +442,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -450,7 +469,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -465,7 +484,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-bedrock-cassandra.yaml b/tg-launch-bedrock-cassandra.yaml index 5d218d17..5093b954 100644 --- a/tg-launch-bedrock-cassandra.yaml +++ b/tg-launch-bedrock-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -426,7 +445,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -457,7 +476,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -472,7 +491,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-bedrock-neo4j.yaml b/tg-launch-bedrock-neo4j.yaml index 8de30c3b..92829326 100644 --- a/tg-launch-bedrock-neo4j.yaml +++ b/tg-launch-bedrock-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -427,7 +446,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -458,7 +477,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -473,7 +492,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-claude-cassandra.yaml b/tg-launch-claude-cassandra.yaml index 22772ada..f2d2cb4f 100644 --- a/tg-launch-claude-cassandra.yaml +++ b/tg-launch-claude-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -420,7 +439,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -445,7 +464,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -460,7 +479,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-claude-neo4j.yaml b/tg-launch-claude-neo4j.yaml index cec0f747..8ef9f8cc 100644 --- a/tg-launch-claude-neo4j.yaml +++ b/tg-launch-claude-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -421,7 +440,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -446,7 +465,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -461,7 +480,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-cohere-cassandra.yaml b/tg-launch-cohere-cassandra.yaml index 906a5c64..31fac7ae 100644 --- a/tg-launch-cohere-cassandra.yaml +++ b/tg-launch-cohere-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -418,7 +437,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -441,7 +460,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -456,7 +475,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-cohere-neo4j.yaml b/tg-launch-cohere-neo4j.yaml index 0dc2bd12..0ebb4979 100644 --- a/tg-launch-cohere-neo4j.yaml +++ b/tg-launch-cohere-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -419,7 +438,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -442,7 +461,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -457,7 +476,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-ollama-cassandra.yaml b/tg-launch-ollama-cassandra.yaml index 51fe0ca6..6b2b37c2 100644 --- a/tg-launch-ollama-cassandra.yaml +++ b/tg-launch-ollama-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -190,7 +205,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -213,7 +228,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -266,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -283,7 +298,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -300,7 +315,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -317,7 +332,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -334,7 +349,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -351,7 +366,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -370,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -393,7 +408,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -408,7 +423,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-ollama-neo4j.yaml b/tg-launch-ollama-neo4j.yaml index ccbea47e..9eb5a74d 100644 --- a/tg-launch-ollama-neo4j.yaml +++ b/tg-launch-ollama-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -191,7 +206,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -214,7 +229,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -267,7 +282,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -284,7 +299,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -301,7 +316,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -318,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -335,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -352,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -371,7 +386,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -394,7 +409,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -409,7 +424,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-openai-cassandra.yaml b/tg-launch-openai-cassandra.yaml index 4415cff3..c52718b7 100644 --- a/tg-launch-openai-cassandra.yaml +++ b/tg-launch-openai-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -422,7 +441,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -449,7 +468,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -464,7 +483,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-openai-neo4j.yaml b/tg-launch-openai-neo4j.yaml index 6a62caba..82b9cbb8 100644 --- a/tg-launch-openai-neo4j.yaml +++ b/tg-launch-openai-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -423,7 +442,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion-rag": "command": @@ -450,7 +469,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "vectorize": "command": @@ -465,7 +484,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-launch-vertexai-cassandra.yaml b/tg-launch-vertexai-cassandra.yaml index 59a26c07..eb578bd1 100644 --- a/tg-launch-vertexai-cassandra.yaml +++ b/tg-launch-vertexai-cassandra.yaml @@ -33,7 +33,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -50,7 +50,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -95,7 +95,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -125,7 +125,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -140,7 +140,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pdf-decoder": "command": @@ -155,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -186,6 +201,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -214,7 +231,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -233,6 +250,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -261,7 +280,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -314,7 +333,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -331,7 +350,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -348,7 +367,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -365,7 +384,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -382,7 +401,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -399,7 +418,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -424,7 +443,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": - "./vertexai:/vertexai" @@ -455,7 +474,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": - "./vertexai:/vertexai" @@ -472,7 +491,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-launch-vertexai-neo4j.yaml b/tg-launch-vertexai-neo4j.yaml index 83c7c681..598ec9d3 100644 --- a/tg-launch-vertexai-neo4j.yaml +++ b/tg-launch-vertexai-neo4j.yaml @@ -16,7 +16,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "embeddings": "command": @@ -33,7 +33,7 @@ "reservations": "cpus": "0.5" "memory": "256M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "grafana": "deploy": @@ -78,7 +78,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "init-pulsar": "command": @@ -108,7 +108,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "kg-extract-relationships": "command": @@ -123,7 +123,22 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" + "restart": "on-failure:100" + "kg-extract-topics": + "command": + - "kg-extract-topics" + - "-p" + - "pulsar://pulsar:6650" + "deploy": + "resources": + "limits": + "cpus": "0.5" + "memory": "128M" + "reservations": + "cpus": "0.1" + "memory": "128M" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "neo4j": "deploy": @@ -156,7 +171,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prometheus": "deploy": @@ -187,6 +202,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -215,7 +232,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "prompt-rag": "command": @@ -234,6 +251,8 @@ - "\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\n\n\n{text}\n\n\n\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" - "--relationship-template" - "\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\n\n\n{text}\n\n\n\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" + - "--topic-template" + - "You are a helpful assistant that performs information extraction tasks for a provided text.\nRead the provided text. You will identify topics and their definitions in JSON.\n\nReading Instructions:\n- Ignore document formatting in the provided text.\n- Study the provided text carefully.\n\nHere is the text:\n{text}\n\nResponse Instructions: \n- Do not respond with special characters.\n- Return only topics that are concepts and unique to the provided text.\n- Respond only with well-formed JSON.\n- The JSON response shall be an array of objects with keys \"topic\" and \"definition\". \n- The JSON response shall use the following structure:\n\n```json\n[{{\"topic\": string, \"definition\": string}}]\n```\n\n- Do not write any additional text or explanations." - "--knowledge-query-template" - | 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. @@ -262,7 +281,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "pulsar": "command": "bin/pulsar standalone" @@ -315,7 +334,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -332,7 +351,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -349,7 +368,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -366,7 +385,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -383,7 +402,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -400,7 +419,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "text-completion": "command": @@ -425,7 +444,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": - "./vertexai:/vertexai" @@ -456,7 +475,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": - "./vertexai:/vertexai" @@ -473,7 +492,7 @@ "reservations": "cpus": "0.5" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {} diff --git a/tg-storage-cassandra.yaml b/tg-storage-cassandra.yaml index 2e358e41..5f529e21 100644 --- a/tg-storage-cassandra.yaml +++ b/tg-storage-cassandra.yaml @@ -118,7 +118,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -135,7 +135,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -152,7 +152,7 @@ "reservations": "cpus": "0.1" "memory": "512M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -169,7 +169,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -186,7 +186,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -203,7 +203,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "cassandra": {} diff --git a/tg-storage-neo4j.yaml b/tg-storage-neo4j.yaml index d5bca10c..31e88987 100644 --- a/tg-storage-neo4j.yaml +++ b/tg-storage-neo4j.yaml @@ -119,7 +119,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-graph-embeddings": "command": @@ -136,7 +136,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "query-triples": "command": @@ -153,7 +153,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-doc-embeddings": "command": @@ -170,7 +170,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-graph-embeddings": "command": @@ -187,7 +187,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "store-triples": "command": @@ -204,7 +204,7 @@ "reservations": "cpus": "0.1" "memory": "128M" - "image": "docker.io/trustgraph/trustgraph-flow:0.9.3" + "image": "docker.io/trustgraph/trustgraph-flow:0.9.4" "restart": "on-failure:100" "volumes": "grafana-storage": {}