mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 15:01:00 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
223 lines
6.7 KiB
Jsonnet
223 lines
6.7 KiB
Jsonnet
local base = import "base/base.jsonnet";
|
|
local images = import "values/images.jsonnet";
|
|
local url = import "values/url.jsonnet";
|
|
|
|
{
|
|
|
|
"graph-rag-entity-limit":: 50,
|
|
"graph-rag-triple-limit":: 30,
|
|
"graph-rag-max-subgraph-size":: 400,
|
|
"graph-rag-max-path-length":: 2,
|
|
|
|
"kg-extract-definitions" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("kg-extract-definitions")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"kg-extract-definitions",
|
|
"-p",
|
|
url.pulsar,
|
|
"--concurrency",
|
|
std.toString($["kg-extraction-concurrency"]),
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"kg-extract-definitions", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"kg-extract-relationships" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("kg-extract-relationships")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"kg-extract-relationships",
|
|
"-p",
|
|
url.pulsar,
|
|
"--concurrency",
|
|
std.toString($["kg-extraction-concurrency"]),
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"kg-extract-relationships", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"kg-extract-agent" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("kg-extract-agent")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"kg-extract-agent",
|
|
"-p",
|
|
url.pulsar,
|
|
"--concurrency",
|
|
std.toString($["kg-extraction-concurrency"]),
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"kg-extract-agent", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"kg-extract-ontology" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("kg-extract-ontology")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"kg-extract-ontology",
|
|
"-p",
|
|
url.pulsar,
|
|
"--concurrency",
|
|
std.toString($["kg-extraction-concurrency"]),
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "300M")
|
|
.with_reservations("0.1", "300M");
|
|
|
|
local containerSet = engine.containers(
|
|
"kg-extract-ontology", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"graph-rag" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("graph-rag")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"graph-rag",
|
|
"-p",
|
|
url.pulsar,
|
|
// "--concurrency",
|
|
// std.toString($["graph-rag-concurrency"]),
|
|
"--entity-limit",
|
|
std.toString($["graph-rag-entity-limit"]),
|
|
"--triple-limit",
|
|
std.toString($["graph-rag-triple-limit"]),
|
|
"--max-subgraph-size",
|
|
std.toString($["graph-rag-max-subgraph-size"]),
|
|
"--max-path-length",
|
|
std.toString($["graph-rag-max-path-length"]),
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"graph-rag", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"graph-embeddings" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("graph-embeddings")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"graph-embeddings",
|
|
"-p",
|
|
url.pulsar,
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("1.0", "512M")
|
|
.with_reservations("0.5", "512M");
|
|
|
|
local containerSet = engine.containers(
|
|
"graph-embeddings", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|