mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Added Mistral OCR client (#326)
- Added Mistral OCR client - Template updates for pdf-ocr - Template updates for pdf-ocr-mistral
This commit is contained in:
parent
fe422b2b95
commit
482592b976
10 changed files with 299 additions and 0 deletions
38
templates/components/ocr.jsonnet
Normal file
38
templates/components/ocr.jsonnet
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
local images = import "values/images.jsonnet";
|
||||
local url = import "values/url.jsonnet";
|
||||
|
||||
{
|
||||
|
||||
"pdf-decoder" +: {
|
||||
|
||||
create:: function(engine)
|
||||
|
||||
local container =
|
||||
engine.container("pdf-ocr")
|
||||
.with_image(images.trustgraph_ocr)
|
||||
.with_command([
|
||||
"pdf-ocr",
|
||||
"-p",
|
||||
url.pulsar,
|
||||
])
|
||||
.with_limits("1.0", "512M")
|
||||
.with_reservations("0.1", "512M");
|
||||
|
||||
local containerSet = engine.containers(
|
||||
"pdf-ocr", [ container ]
|
||||
);
|
||||
|
||||
local service =
|
||||
engine.internalService(containerSet)
|
||||
.with_port(8080, 8080, "metrics");
|
||||
|
||||
engine.resources([
|
||||
envSecrets,
|
||||
containerSet,
|
||||
service,
|
||||
])
|
||||
|
||||
},
|
||||
|
||||
} + prompts
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue