mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
87 lines
1.4 KiB
Jsonnet
87 lines
1.4 KiB
Jsonnet
local base = import "base.jsonnet";
|
|
local images = import "images.jsonnet";
|
|
local url = import "url.jsonnet";
|
|
{
|
|
services +: {
|
|
|
|
chunker: base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"${CHUNKER:-chunker-token}",
|
|
"-p",
|
|
url.pulsar,
|
|
"--chunk-size",
|
|
"150",
|
|
"--chunk-overlap",
|
|
"10",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"text-completion": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"text-completion-cohere",
|
|
"-p",
|
|
url.pulsar,
|
|
"-k",
|
|
"${COHERE_KEY}",
|
|
"-t",
|
|
"0.0",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"text-completion-rag": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"text-completion-cohere",
|
|
"-p",
|
|
url.pulsar,
|
|
"-k",
|
|
"${COHERE_KEY}",
|
|
"-t",
|
|
"0.0",
|
|
"-i",
|
|
"non-persistent://tg/request/text-completion-rag",
|
|
"-o",
|
|
"non-persistent://tg/response/text-completion-rag-response",
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.5',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
},
|
|
}
|