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
45 lines
1.1 KiB
Jsonnet
45 lines
1.1 KiB
Jsonnet
local images = import "values/images.jsonnet";
|
|
|
|
{
|
|
|
|
"pinecone" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("pinecone")
|
|
.with_image(images.pinecone)
|
|
.with_environment({
|
|
|
|
PORT: "5080",
|
|
|
|
INDEX_TYPE: "serverless",
|
|
|
|
// Dimension is fixed, 384 is right for miniLM
|
|
// sentence embedding
|
|
DIMENSION: 384,
|
|
|
|
METRIC: "cosine"
|
|
|
|
})
|
|
.with_limits("1.0", "256M")
|
|
.with_reservations("0.5", "256M")
|
|
.with_port(5080, 5080, "api");
|
|
|
|
local containerSet = engine.containers(
|
|
"pinecone", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(5080, 5080, "api");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|