mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
* More memory for Cassandra * More memory/CPU for embeddings * Bump version, regenerate templates
177 lines
2.6 KiB
Jsonnet
177 lines
2.6 KiB
Jsonnet
|
|
local base = import "base.jsonnet";
|
|
|
|
local images = import "images.jsonnet";
|
|
|
|
local url = import "url.jsonnet";
|
|
|
|
{
|
|
services +: {
|
|
|
|
"pdf-decoder": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"pdf-decoder",
|
|
"-p",
|
|
url.pulsar,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
chunker: base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"${CHUNKER:-chunker-token}",
|
|
"-p",
|
|
url.pulsar,
|
|
"--chunk-size",
|
|
"250",
|
|
"--chunk-overlap",
|
|
"15",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
vectorize: base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"embeddings-vectorize",
|
|
"-p",
|
|
url.pulsar,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '1.0',
|
|
memory: '512M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.5',
|
|
memory: '512M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
embeddings: base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"embeddings-hf",
|
|
"-p",
|
|
url.pulsar,
|
|
"-m",
|
|
"all-MiniLM-L6-v2",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '1.0',
|
|
memory: '256M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.5',
|
|
memory: '256M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"kg-extract-definitions": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"kg-extract-definitions",
|
|
"-p",
|
|
url.pulsar,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"kg-extract-relationships": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"kg-extract-relationships",
|
|
"-p",
|
|
url.pulsar,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"graph-rag": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"graph-rag",
|
|
"-p",
|
|
url.pulsar,
|
|
"--prompt-request-queue",
|
|
"non-persistent://tg/request/prompt-rag",
|
|
"--prompt-response-queue",
|
|
"non-persistent://tg/response/prompt-rag-response",
|
|
"--entity-limit",
|
|
"50",
|
|
"--triple-limit",
|
|
"30",
|
|
"--max-subgraph-size",
|
|
"3000",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|