mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 01:01:03 +02:00
Switch Milvus for Qdrant in YAMLs (#43)
* Qdrant working * - Fix missing prompt templates - Bump version - Add Qdrant to packages * Switch Milvus for Qdrant in config files
This commit is contained in:
parent
2622c48690
commit
32b087fbf6
36 changed files with 1127 additions and 1520 deletions
9
Makefile
9
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# VERSION=$(shell git describe | sed 's/^v//')
|
# VERSION=$(shell git describe | sed 's/^v//')
|
||||||
VERSION=0.7.19
|
VERSION=0.7.20
|
||||||
|
|
||||||
DOCKER=podman
|
DOCKER=podman
|
||||||
|
|
||||||
|
|
@ -43,9 +43,12 @@ GRAPHS=cassandra neo4j
|
||||||
tg-launch-%.yaml: templates/%.jsonnet templates/components/version.jsonnet
|
tg-launch-%.yaml: templates/%.jsonnet templates/components/version.jsonnet
|
||||||
jsonnet -S ${@:tg-launch-%.yaml=templates/%.jsonnet} > $@
|
jsonnet -S ${@:tg-launch-%.yaml=templates/%.jsonnet} > $@
|
||||||
|
|
||||||
|
# VECTORDB=milvus
|
||||||
|
VECTORDB=qdrant
|
||||||
|
|
||||||
update-templates: set-version
|
update-templates: set-version
|
||||||
for graph in ${GRAPHS}; do \
|
for graph in ${GRAPHS}; do \
|
||||||
cm=$${graph},pulsar,milvus,grafana; \
|
cm=$${graph},pulsar,${VECTORDB},grafana; \
|
||||||
input=templates/main.jsonnet; \
|
input=templates/main.jsonnet; \
|
||||||
output=tg-storage-$${graph}.yaml; \
|
output=tg-storage-$${graph}.yaml; \
|
||||||
echo $${graph} '->' $${output}; \
|
echo $${graph} '->' $${output}; \
|
||||||
|
|
@ -53,7 +56,7 @@ update-templates: set-version
|
||||||
done
|
done
|
||||||
for model in ${MODELS}; do \
|
for model in ${MODELS}; do \
|
||||||
for graph in ${GRAPHS}; do \
|
for graph in ${GRAPHS}; do \
|
||||||
cm=$${graph},pulsar,milvus,grafana,trustgraph,$${model}; \
|
cm=$${graph},pulsar,${VECTORDB},grafana,trustgraph,$${model}; \
|
||||||
input=templates/main.jsonnet; \
|
input=templates/main.jsonnet; \
|
||||||
output=tg-launch-$${model}-$${graph}.yaml; \
|
output=tg-launch-$${model}-$${graph}.yaml; \
|
||||||
echo $${model} + $${graph} '->' $${output}; \
|
echo $${model} + $${graph} '->' $${output}; \
|
||||||
|
|
|
||||||
6
scripts/ge-query-qdrant
Executable file
6
scripts/ge-query-qdrant
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from trustgraph.query.graph_embeddings.qdrant import run
|
||||||
|
|
||||||
|
run()
|
||||||
|
|
||||||
6
scripts/ge-write-qdrant
Executable file
6
scripts/ge-write-qdrant
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from trustgraph.storage.graph_embeddings.qdrant import run
|
||||||
|
|
||||||
|
run()
|
||||||
|
|
||||||
5
setup.py
5
setup.py
|
|
@ -4,7 +4,7 @@ import os
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "0.7.19"
|
version = "0.7.20"
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="trustgraph",
|
name="trustgraph",
|
||||||
|
|
@ -40,6 +40,7 @@ setuptools.setup(
|
||||||
"cassandra-driver",
|
"cassandra-driver",
|
||||||
"pulsar-client",
|
"pulsar-client",
|
||||||
"pypdf",
|
"pypdf",
|
||||||
|
"qdrant-client",
|
||||||
"anthropic",
|
"anthropic",
|
||||||
"google-cloud-aiplatform",
|
"google-cloud-aiplatform",
|
||||||
"pyyaml",
|
"pyyaml",
|
||||||
|
|
@ -65,6 +66,8 @@ setuptools.setup(
|
||||||
"scripts/ge-dump-parquet",
|
"scripts/ge-dump-parquet",
|
||||||
"scripts/ge-query-milvus",
|
"scripts/ge-query-milvus",
|
||||||
"scripts/ge-write-milvus",
|
"scripts/ge-write-milvus",
|
||||||
|
"scripts/ge-query-qdrant",
|
||||||
|
"scripts/ge-write-qdrant",
|
||||||
"scripts/graph-rag",
|
"scripts/graph-rag",
|
||||||
"scripts/graph-show",
|
"scripts/graph-show",
|
||||||
"scripts/graph-to-turtle",
|
"scripts/graph-to-turtle",
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,5 @@ local version = import "version.jsonnet";
|
||||||
prometheus: "docker.io/prom/prometheus:v2.53.2",
|
prometheus: "docker.io/prom/prometheus:v2.53.2",
|
||||||
grafana: "docker.io/grafana/grafana:11.1.4",
|
grafana: "docker.io/grafana/grafana:11.1.4",
|
||||||
trustgraph: "docker.io/trustgraph/trustgraph-flow:" + version,
|
trustgraph: "docker.io/trustgraph/trustgraph-flow:" + version,
|
||||||
|
qdrant: "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
111
templates/components/qdrant.jsonnet
Normal file
111
templates/components/qdrant.jsonnet
Normal file
|
|
@ -0,0 +1,111 @@
|
||||||
|
local base = import "base.jsonnet";
|
||||||
|
local images = import "images.jsonnet";
|
||||||
|
local url = import "url.jsonnet";
|
||||||
|
local qdrant = import "stores/qdrant.jsonnet";
|
||||||
|
|
||||||
|
qdrant + {
|
||||||
|
|
||||||
|
services +: {
|
||||||
|
|
||||||
|
"store-graph-embeddings": base + {
|
||||||
|
image: images.trustgraph,
|
||||||
|
command: [
|
||||||
|
"ge-write-qdrant",
|
||||||
|
"-p",
|
||||||
|
url.pulsar,
|
||||||
|
"-t",
|
||||||
|
url.qdrant,
|
||||||
|
],
|
||||||
|
deploy: {
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpus: '0.5',
|
||||||
|
memory: '128M'
|
||||||
|
},
|
||||||
|
reservations: {
|
||||||
|
cpus: '0.1',
|
||||||
|
memory: '128M'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
"query-graph-embeddings": base + {
|
||||||
|
image: images.trustgraph,
|
||||||
|
command: [
|
||||||
|
"ge-query-qdrant",
|
||||||
|
"-p",
|
||||||
|
url.pulsar,
|
||||||
|
"-t",
|
||||||
|
url.qdrant,
|
||||||
|
],
|
||||||
|
deploy: {
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpus: '0.5',
|
||||||
|
memory: '128M'
|
||||||
|
},
|
||||||
|
reservations: {
|
||||||
|
cpus: '0.1',
|
||||||
|
memory: '128M'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
// Document embeddings writer & query service. Not currently enabled.
|
||||||
|
|
||||||
|
"store-doc-embeddings": base + {
|
||||||
|
image: images.trustgraph,
|
||||||
|
command: [
|
||||||
|
"de-write-qdrant",
|
||||||
|
"-p",
|
||||||
|
url.pulsar,
|
||||||
|
"-t",
|
||||||
|
url.qdrant,
|
||||||
|
],
|
||||||
|
deploy: {
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpus: '0.5',
|
||||||
|
memory: '128M'
|
||||||
|
},
|
||||||
|
reservations: {
|
||||||
|
cpus: '0.1',
|
||||||
|
memory: '128M'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
"query-doc-embeddings": base + {
|
||||||
|
image: images.trustgraph,
|
||||||
|
command: [
|
||||||
|
"de-query-qdrant",
|
||||||
|
"-p",
|
||||||
|
url.pulsar,
|
||||||
|
"-t",
|
||||||
|
url.qdrant,
|
||||||
|
],
|
||||||
|
deploy: {
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpus: '0.5',
|
||||||
|
memory: '128M'
|
||||||
|
},
|
||||||
|
reservations: {
|
||||||
|
cpus: '0.1',
|
||||||
|
memory: '128M'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
37
templates/components/stores/qdrant.jsonnet
Normal file
37
templates/components/stores/qdrant.jsonnet
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
local base = import "../base.jsonnet";
|
||||||
|
local images = import "../images.jsonnet";
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
volumes +: {
|
||||||
|
qdrant: {},
|
||||||
|
},
|
||||||
|
|
||||||
|
services +: {
|
||||||
|
|
||||||
|
qdrant: base + {
|
||||||
|
image: images.qdrant,
|
||||||
|
ports: [
|
||||||
|
"6333:6333",
|
||||||
|
"6334:6334",
|
||||||
|
],
|
||||||
|
volumes: [
|
||||||
|
"qdrant:/qdrant/storage"
|
||||||
|
],
|
||||||
|
deploy: {
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpus: '1.0',
|
||||||
|
memory: '256M'
|
||||||
|
},
|
||||||
|
reservations: {
|
||||||
|
cpus: '0.5',
|
||||||
|
memory: '256M'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
pulsar: "pulsar://pulsar:6650",
|
pulsar: "pulsar://pulsar:6650",
|
||||||
milvus: "http://milvus:19530",
|
milvus: "http://milvus:19530",
|
||||||
|
qdrant: "http://qdrant:6333",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ local components = {
|
||||||
cassandra: import "components/cassandra.jsonnet",
|
cassandra: import "components/cassandra.jsonnet",
|
||||||
pulsar: import "components/pulsar.jsonnet",
|
pulsar: import "components/pulsar.jsonnet",
|
||||||
milvus: import "components/milvus.jsonnet",
|
milvus: import "components/milvus.jsonnet",
|
||||||
|
qdrant: import "components/qdrant.jsonnet",
|
||||||
grafana: import "components/grafana.jsonnet",
|
grafana: import "components/grafana.jsonnet",
|
||||||
trustgraph: import "components/trustgraph.jsonnet",
|
trustgraph: import "components/trustgraph.jsonnet",
|
||||||
azure: import "components/azure.jsonnet",
|
azure: import "components/azure.jsonnet",
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ local url = import "../components/url.jsonnet";
|
||||||
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
||||||
"--knowledge-query-template",
|
"--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",
|
"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",
|
||||||
|
"--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",
|
||||||
|
"--rows-template",
|
||||||
|
"<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>",
|
||||||
],
|
],
|
||||||
deploy: {
|
deploy: {
|
||||||
resources: {
|
resources: {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ local url = import "../components/url.jsonnet";
|
||||||
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
||||||
"--knowledge-query-template",
|
"--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",
|
"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",
|
||||||
|
"--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",
|
||||||
|
"--rows-template",
|
||||||
|
"<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>",
|
||||||
],
|
],
|
||||||
deploy: {
|
deploy: {
|
||||||
resources: {
|
resources: {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ local url = import "../components/url.jsonnet";
|
||||||
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
"<instructions>\nStudy the following text and derive entity relationships. For each\nrelationship, derive the subject, predicate and object of the relationship.\nOutput relationships in JSON format as an arary of objects with fields:\n- subject: the subject of the relationship\n- predicate: the predicate\n- object: the object of the relationship\n- object-entity: false if the object is a simple data type: name, value or date. true if it is an entity.\n</instructions>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not use special characters in the abstract text. The\nabstract must be written as plain text. Do not add markdown formatting\nor headers or prefixes.\n</requirements>",
|
||||||
"--knowledge-query-template",
|
"--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",
|
"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",
|
||||||
|
"--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",
|
||||||
|
"--rows-template",
|
||||||
|
"<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>",
|
||||||
],
|
],
|
||||||
deploy: {
|
deploy: {
|
||||||
resources: {
|
resources: {
|
||||||
|
|
|
||||||
1
templates/test.jsonnet
Normal file
1
templates/test.jsonnet
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
std.extVar("asd")
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -454,7 +407,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -481,7 +434,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -496,14 +449,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -455,7 +408,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -482,7 +435,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -497,14 +450,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -458,7 +411,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -489,7 +442,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -504,14 +457,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -459,7 +412,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -490,7 +443,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -505,14 +458,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -452,7 +405,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -477,7 +430,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -492,14 +445,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -453,7 +406,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -478,7 +431,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -493,14 +446,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -450,7 +403,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -473,7 +426,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -488,14 +441,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -451,7 +404,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -474,7 +427,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -489,14 +442,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -267,7 +193,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -290,7 +216,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -328,13 +254,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -343,7 +285,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -360,15 +302,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -377,7 +319,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -394,7 +336,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -413,7 +355,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -436,7 +378,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -451,14 +393,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -268,7 +194,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -291,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -329,13 +255,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -344,7 +286,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -361,15 +303,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -378,7 +320,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -395,7 +337,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -414,7 +356,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -437,7 +379,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -452,14 +394,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -452,7 +405,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -477,7 +430,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -492,14 +445,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -453,7 +406,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion-rag":
|
"text-completion-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -478,7 +431,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"vectorize":
|
"vectorize":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -493,14 +446,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -50,35 +50,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -122,7 +95,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -155,7 +128,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -170,55 +143,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"pdf-decoder":
|
"pdf-decoder":
|
||||||
"command":
|
"command":
|
||||||
- "pdf-decoder"
|
- "pdf-decoder"
|
||||||
|
|
@ -232,7 +158,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -272,6 +198,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -280,7 +217,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -327,7 +264,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -365,13 +302,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -380,7 +333,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -397,15 +350,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -414,7 +367,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -431,7 +384,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -454,7 +407,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
- "./vertexai:/vertexai"
|
- "./vertexai:/vertexai"
|
||||||
|
|
@ -483,7 +436,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
- "./vertexai:/vertexai"
|
- "./vertexai:/vertexai"
|
||||||
|
|
@ -500,14 +453,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"embeddings":
|
"embeddings":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -33,35 +33,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "256M"
|
"memory": "256M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -105,7 +78,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"init-pulsar":
|
"init-pulsar":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -138,7 +111,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"kg-extract-relationships":
|
"kg-extract-relationships":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -153,55 +126,8 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -233,7 +159,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
|
|
@ -273,6 +199,17 @@
|
||||||
|
|
||||||
Use only the provided knowledge statements to respond to the following:
|
Use only the provided knowledge statements to respond to the following:
|
||||||
{query}
|
{query}
|
||||||
|
- "--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.
|
||||||
|
|
||||||
|
Here is the context:
|
||||||
|
{documents}
|
||||||
|
|
||||||
|
Use only the provided knowledge statements to respond to the following:
|
||||||
|
{query}
|
||||||
|
- "--rows-template"
|
||||||
|
- "<instructions>\nStudy the following text and derive objects which match the schema provided.\n\nYou must output an array of JSON objects for each object you discover\nwhich matches the schema. For each object, output a JSON object whose fields\ncarry the name field specified in the schema.\n</instructions>\n\n<schema>\n{schema}\n</schema>\n\n<text>\n{text}\n</text>\n\n<requirements>\nYou will respond only with raw JSON format data. Do not provide\nexplanations. Do not add markdown formatting or headers or prefixes.\n</requirements>"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -281,7 +218,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"prompt-rag":
|
"prompt-rag":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -328,7 +265,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"pulsar":
|
"pulsar":
|
||||||
"command": "bin/pulsar standalone"
|
"command": "bin/pulsar standalone"
|
||||||
|
|
@ -366,13 +303,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -381,7 +334,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -398,15 +351,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -415,7 +368,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -432,7 +385,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"text-completion":
|
"text-completion":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -455,7 +408,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
- "./vertexai:/vertexai"
|
- "./vertexai:/vertexai"
|
||||||
|
|
@ -484,7 +437,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
- "./vertexai:/vertexai"
|
- "./vertexai:/vertexai"
|
||||||
|
|
@ -501,14 +454,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.5"
|
"cpus": "0.5"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -16,33 +16,6 @@
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
- "cassandra:/var/lib/cassandra"
|
- "cassandra:/var/lib/cassandra"
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -81,53 +54,6 @@
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/apachepulsar/pulsar:3.3.1"
|
"image": "docker.io/apachepulsar/pulsar:3.3.1"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"prometheus":
|
"prometheus":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -180,13 +106,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -195,7 +137,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -212,15 +154,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "512M"
|
"memory": "512M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -229,7 +171,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -246,14 +188,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"cassandra": {}
|
"cassandra": {}
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,4 @@
|
||||||
"services":
|
"services":
|
||||||
"etcd":
|
|
||||||
"command":
|
|
||||||
- "etcd"
|
|
||||||
- "-advertise-client-urls=http://127.0.0.1:2379"
|
|
||||||
- "-listen-client-urls"
|
|
||||||
- "http://0.0.0.0:2379"
|
|
||||||
- "--data-dir"
|
|
||||||
- "/etcd"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_AUTO_COMPACTION_MODE": "revision"
|
|
||||||
"ETCD_AUTO_COMPACTION_RETENTION": "1000"
|
|
||||||
"ETCD_QUOTA_BACKEND_BYTES": "4294967296"
|
|
||||||
"ETCD_SNAPSHOT_COUNT": "50000"
|
|
||||||
"image": "quay.io/coreos/etcd:v3.5.15"
|
|
||||||
"ports":
|
|
||||||
- "2379:2379"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "etcd:/etcd"
|
|
||||||
"grafana":
|
"grafana":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -64,53 +37,6 @@
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/apachepulsar/pulsar:3.3.1"
|
"image": "docker.io/apachepulsar/pulsar:3.3.1"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"milvus":
|
|
||||||
"command":
|
|
||||||
- "milvus"
|
|
||||||
- "run"
|
|
||||||
- "standalone"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "1.0"
|
|
||||||
"memory": "256M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "256M"
|
|
||||||
"environment":
|
|
||||||
"ETCD_ENDPOINTS": "etcd:2379"
|
|
||||||
"MINIO_ADDRESS": "minio:9000"
|
|
||||||
"image": "docker.io/milvusdb/milvus:v2.4.9"
|
|
||||||
"ports":
|
|
||||||
- "9091:9091"
|
|
||||||
- "19530:19530"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "milvus:/var/lib/milvus"
|
|
||||||
"minio":
|
|
||||||
"command":
|
|
||||||
- "minio"
|
|
||||||
- "server"
|
|
||||||
- "/minio_data"
|
|
||||||
- "--console-address"
|
|
||||||
- ":9001"
|
|
||||||
"deploy":
|
|
||||||
"resources":
|
|
||||||
"limits":
|
|
||||||
"cpus": "0.5"
|
|
||||||
"memory": "128M"
|
|
||||||
"reservations":
|
|
||||||
"cpus": "0.25"
|
|
||||||
"memory": "128M"
|
|
||||||
"environment":
|
|
||||||
"MINIO_ROOT_PASSWORD": "minioadmin"
|
|
||||||
"MINIO_ROOT_USER": "minioadmin"
|
|
||||||
"image": "docker.io/minio/minio:RELEASE.2024-08-17T01-24-54Z"
|
|
||||||
"ports":
|
|
||||||
- "9001:9001"
|
|
||||||
"restart": "on-failure:100"
|
|
||||||
"volumes":
|
|
||||||
- "minio-data:/minio_data"
|
|
||||||
"neo4j":
|
"neo4j":
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
|
|
@ -181,13 +107,29 @@
|
||||||
- "9527:9527"
|
- "9527:9527"
|
||||||
- "7750:7750"
|
- "7750:7750"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
|
"qdrant":
|
||||||
|
"deploy":
|
||||||
|
"resources":
|
||||||
|
"limits":
|
||||||
|
"cpus": "1.0"
|
||||||
|
"memory": "256M"
|
||||||
|
"reservations":
|
||||||
|
"cpus": "0.5"
|
||||||
|
"memory": "256M"
|
||||||
|
"image": "docker.io/qdrant/qdrant:v1.11.1"
|
||||||
|
"ports":
|
||||||
|
- "6333:6333"
|
||||||
|
- "6334:6334"
|
||||||
|
"restart": "on-failure:100"
|
||||||
|
"volumes":
|
||||||
|
- "qdrant:/qdrant/storage"
|
||||||
"query-graph-embeddings":
|
"query-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-query-milvus"
|
- "ge-query-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -196,7 +138,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"query-triples":
|
"query-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -213,15 +155,15 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-graph-embeddings":
|
"store-graph-embeddings":
|
||||||
"command":
|
"command":
|
||||||
- "ge-write-milvus"
|
- "ge-write-qdrant"
|
||||||
- "-p"
|
- "-p"
|
||||||
- "pulsar://pulsar:6650"
|
- "pulsar://pulsar:6650"
|
||||||
- "-t"
|
- "-t"
|
||||||
- "http://milvus:19530"
|
- "http://qdrant:6333"
|
||||||
"deploy":
|
"deploy":
|
||||||
"resources":
|
"resources":
|
||||||
"limits":
|
"limits":
|
||||||
|
|
@ -230,7 +172,7 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"store-triples":
|
"store-triples":
|
||||||
"command":
|
"command":
|
||||||
|
|
@ -247,14 +189,12 @@
|
||||||
"reservations":
|
"reservations":
|
||||||
"cpus": "0.1"
|
"cpus": "0.1"
|
||||||
"memory": "128M"
|
"memory": "128M"
|
||||||
"image": "docker.io/trustgraph/trustgraph-flow:0.7.19"
|
"image": "docker.io/trustgraph/trustgraph-flow:0.7.20"
|
||||||
"restart": "on-failure:100"
|
"restart": "on-failure:100"
|
||||||
"volumes":
|
"volumes":
|
||||||
"etcd": {}
|
|
||||||
"grafana-storage": {}
|
"grafana-storage": {}
|
||||||
"milvus": {}
|
|
||||||
"minio-data": {}
|
|
||||||
"neo4j": {}
|
"neo4j": {}
|
||||||
"prometheus-data": {}
|
"prometheus-data": {}
|
||||||
"pulsar-conf": {}
|
"pulsar-conf": {}
|
||||||
"pulsar-data": {}
|
"pulsar-data": {}
|
||||||
|
"qdrant": {}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ class Consumer(BaseProcessor):
|
||||||
|
|
||||||
def __init__(self, **params):
|
def __init__(self, **params):
|
||||||
|
|
||||||
print("HERE2")
|
|
||||||
super(Consumer, self).__init__(**params)
|
super(Consumer, self).__init__(**params)
|
||||||
|
|
||||||
input_queue = params.get("input_queue")
|
input_queue = params.get("input_queue")
|
||||||
|
|
@ -30,7 +29,6 @@ class Consumer(BaseProcessor):
|
||||||
'pubsub', 'Pub/sub configuration'
|
'pubsub', 'Pub/sub configuration'
|
||||||
)
|
)
|
||||||
|
|
||||||
print("HERE")
|
|
||||||
if not hasattr(__class__, "processing_metric"):
|
if not hasattr(__class__, "processing_metric"):
|
||||||
__class__.processing_metric = Counter(
|
__class__.processing_metric = Counter(
|
||||||
'processing_count', 'Processing count', ["status"]
|
'processing_count', 'Processing count', ["status"]
|
||||||
|
|
|
||||||
3
trustgraph/query/graph_embeddings/qdrant/__init__.py
Normal file
3
trustgraph/query/graph_embeddings/qdrant/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
from . service import *
|
||||||
|
|
||||||
7
trustgraph/query/graph_embeddings/qdrant/__main__.py
Executable file
7
trustgraph/query/graph_embeddings/qdrant/__main__.py
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from . hf import run
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
run()
|
||||||
|
|
||||||
133
trustgraph/query/graph_embeddings/qdrant/service.py
Executable file
133
trustgraph/query/graph_embeddings/qdrant/service.py
Executable file
|
|
@ -0,0 +1,133 @@
|
||||||
|
|
||||||
|
"""
|
||||||
|
Graph embeddings query service. Input is vector, output is list of
|
||||||
|
entities
|
||||||
|
"""
|
||||||
|
|
||||||
|
from qdrant_client import QdrantClient
|
||||||
|
from qdrant_client.models import PointStruct
|
||||||
|
from qdrant_client.models import Distance, VectorParams
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
from .... schema import GraphEmbeddingsRequest, GraphEmbeddingsResponse
|
||||||
|
from .... schema import Error, Value
|
||||||
|
from .... schema import graph_embeddings_request_queue
|
||||||
|
from .... schema import graph_embeddings_response_queue
|
||||||
|
from .... base import ConsumerProducer
|
||||||
|
|
||||||
|
module = ".".join(__name__.split(".")[1:-1])
|
||||||
|
|
||||||
|
default_input_queue = graph_embeddings_request_queue
|
||||||
|
default_output_queue = graph_embeddings_response_queue
|
||||||
|
default_subscriber = module
|
||||||
|
default_store_uri = 'http://localhost:6333'
|
||||||
|
|
||||||
|
class Processor(ConsumerProducer):
|
||||||
|
|
||||||
|
def __init__(self, **params):
|
||||||
|
|
||||||
|
input_queue = params.get("input_queue", default_input_queue)
|
||||||
|
output_queue = params.get("output_queue", default_output_queue)
|
||||||
|
subscriber = params.get("subscriber", default_subscriber)
|
||||||
|
store_uri = params.get("store_uri", default_store_uri)
|
||||||
|
|
||||||
|
super(Processor, self).__init__(
|
||||||
|
**params | {
|
||||||
|
"input_queue": input_queue,
|
||||||
|
"output_queue": output_queue,
|
||||||
|
"subscriber": subscriber,
|
||||||
|
"input_schema": GraphEmbeddingsRequest,
|
||||||
|
"output_schema": GraphEmbeddingsResponse,
|
||||||
|
"store_uri": store_uri,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
self.client = QdrantClient(url=store_uri)
|
||||||
|
|
||||||
|
def create_value(self, ent):
|
||||||
|
if ent.startswith("http://") or ent.startswith("https://"):
|
||||||
|
return Value(value=ent, is_uri=True)
|
||||||
|
else:
|
||||||
|
return Value(value=ent, is_uri=False)
|
||||||
|
|
||||||
|
def handle(self, msg):
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
|
v = msg.value()
|
||||||
|
|
||||||
|
# Sender-produced ID
|
||||||
|
id = msg.properties()["id"]
|
||||||
|
|
||||||
|
print(f"Handling input {id}...", flush=True)
|
||||||
|
|
||||||
|
entities = set()
|
||||||
|
|
||||||
|
for vec in v.vectors:
|
||||||
|
|
||||||
|
dim = len(vec)
|
||||||
|
collection = "triples_" + str(dim)
|
||||||
|
|
||||||
|
search_result = self.client.query_points(
|
||||||
|
collection_name=collection,
|
||||||
|
query=vec,
|
||||||
|
limit=v.limit,
|
||||||
|
with_payload=True,
|
||||||
|
).points
|
||||||
|
|
||||||
|
for r in search_result:
|
||||||
|
ent = r.payload["entity"]
|
||||||
|
entities.add(ent)
|
||||||
|
|
||||||
|
# Convert set to list
|
||||||
|
entities = list(entities)
|
||||||
|
|
||||||
|
ents2 = []
|
||||||
|
|
||||||
|
for ent in entities:
|
||||||
|
ents2.append(self.create_value(ent))
|
||||||
|
|
||||||
|
entities = ents2
|
||||||
|
|
||||||
|
print("Send response...", flush=True)
|
||||||
|
r = GraphEmbeddingsResponse(entities=entities, error=None)
|
||||||
|
self.producer.send(r, properties={"id": id})
|
||||||
|
|
||||||
|
print("Done.", flush=True)
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
|
||||||
|
print(f"Exception: {e}")
|
||||||
|
|
||||||
|
print("Send error response...", flush=True)
|
||||||
|
|
||||||
|
r = GraphEmbeddingsResponse(
|
||||||
|
error=Error(
|
||||||
|
type = "llm-error",
|
||||||
|
message = str(e),
|
||||||
|
),
|
||||||
|
entities=None,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.producer.send(r, properties={"id": id})
|
||||||
|
|
||||||
|
self.consumer.acknowledge(msg)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def add_args(parser):
|
||||||
|
|
||||||
|
ConsumerProducer.add_args(
|
||||||
|
parser, default_input_queue, default_subscriber,
|
||||||
|
default_output_queue,
|
||||||
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
'-t', '--store-uri',
|
||||||
|
default=default_store_uri,
|
||||||
|
help=f'Milvus store URI (default: {default_store_uri})'
|
||||||
|
)
|
||||||
|
|
||||||
|
def run():
|
||||||
|
|
||||||
|
Processor.start(module, __doc__)
|
||||||
|
|
||||||
3
trustgraph/storage/graph_embeddings/qdrant/__init__.py
Normal file
3
trustgraph/storage/graph_embeddings/qdrant/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
from . write import *
|
||||||
|
|
||||||
7
trustgraph/storage/graph_embeddings/qdrant/__main__.py
Executable file
7
trustgraph/storage/graph_embeddings/qdrant/__main__.py
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from . write import run
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
run()
|
||||||
|
|
||||||
102
trustgraph/storage/graph_embeddings/qdrant/write.py
Executable file
102
trustgraph/storage/graph_embeddings/qdrant/write.py
Executable file
|
|
@ -0,0 +1,102 @@
|
||||||
|
|
||||||
|
"""
|
||||||
|
Accepts entity/vector pairs and writes them to a Qdrant store.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from qdrant_client import QdrantClient
|
||||||
|
from qdrant_client.models import PointStruct
|
||||||
|
from qdrant_client.models import Distance, VectorParams
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
from .... schema import GraphEmbeddings
|
||||||
|
from .... schema import graph_embeddings_store_queue
|
||||||
|
from .... log_level import LogLevel
|
||||||
|
from .... base import Consumer
|
||||||
|
|
||||||
|
module = ".".join(__name__.split(".")[1:-1])
|
||||||
|
|
||||||
|
default_input_queue = graph_embeddings_store_queue
|
||||||
|
default_subscriber = module
|
||||||
|
default_store_uri = 'http://localhost:6333'
|
||||||
|
|
||||||
|
class Processor(Consumer):
|
||||||
|
|
||||||
|
def __init__(self, **params):
|
||||||
|
|
||||||
|
input_queue = params.get("input_queue", default_input_queue)
|
||||||
|
subscriber = params.get("subscriber", default_subscriber)
|
||||||
|
store_uri = params.get("store_uri", default_store_uri)
|
||||||
|
|
||||||
|
super(Processor, self).__init__(
|
||||||
|
**params | {
|
||||||
|
"input_queue": input_queue,
|
||||||
|
"subscriber": subscriber,
|
||||||
|
"input_schema": GraphEmbeddings,
|
||||||
|
"store_uri": store_uri,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
self.last_collection = None
|
||||||
|
self.last_dim = None
|
||||||
|
|
||||||
|
self.client = QdrantClient(url=store_uri)
|
||||||
|
|
||||||
|
def handle(self, msg):
|
||||||
|
|
||||||
|
v = msg.value()
|
||||||
|
|
||||||
|
if v.entity.value == "" or v.entity.value is None: return
|
||||||
|
|
||||||
|
for vec in v.vectors:
|
||||||
|
|
||||||
|
dim = len(vec)
|
||||||
|
collection = "triples_" + str(dim)
|
||||||
|
|
||||||
|
if dim != self.last_dim:
|
||||||
|
|
||||||
|
if not self.client.collection_exists(collection):
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.client.create_collection(
|
||||||
|
collection_name=collection,
|
||||||
|
vectors_config=VectorParams(
|
||||||
|
size=dim, distance=Distance.DOT
|
||||||
|
),
|
||||||
|
)
|
||||||
|
except Exception as e:
|
||||||
|
print("Qdrant collection creation failed")
|
||||||
|
raise e
|
||||||
|
|
||||||
|
self.last_collection = collection
|
||||||
|
self.last_dim = dim
|
||||||
|
|
||||||
|
self.client.upsert(
|
||||||
|
collection_name=collection,
|
||||||
|
points=[
|
||||||
|
PointStruct(
|
||||||
|
id=str(uuid.uuid4()),
|
||||||
|
vector=vec,
|
||||||
|
payload={
|
||||||
|
"entity": v.entity.value,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def add_args(parser):
|
||||||
|
|
||||||
|
Consumer.add_args(
|
||||||
|
parser, default_input_queue, default_subscriber,
|
||||||
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
'-t', '--store-uri',
|
||||||
|
default=default_store_uri,
|
||||||
|
help=f'Qdrant store URI (default: {default_store_uri})'
|
||||||
|
)
|
||||||
|
|
||||||
|
def run():
|
||||||
|
|
||||||
|
Processor.start(module, __doc__)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue