mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
46 lines
1.2 KiB
Jsonnet
46 lines
1.2 KiB
Jsonnet
local base = import "base/base.jsonnet";
|
|
local images = import "values/images.jsonnet";
|
|
local url = import "values/url.jsonnet";
|
|
local prompts = import "prompts/mixtral.jsonnet";
|
|
|
|
{
|
|
|
|
"chunk-size":: 2000,
|
|
"chunk-overlap":: 100,
|
|
|
|
"chunker" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("chunker")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"chunker-recursive",
|
|
"-p",
|
|
url.pulsar,
|
|
"--chunk-size",
|
|
std.toString($["chunk-size"]),
|
|
"--chunk-overlap",
|
|
std.toString($["chunk-overlap"]),
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"chunker", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|