mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Simplify templates (#10)
- Add component template files for all LLM types - Top-level templates simplified to use just components - Version to 0.6.2
This commit is contained in:
parent
d3e213f194
commit
fa0b89b5d4
30 changed files with 502 additions and 520 deletions
|
|
@ -1,45 +1,12 @@
|
|||
|
||||
local base = import "components/base.jsonnet";
|
||||
local url = import "components/url.jsonnet";
|
||||
local images = import "components/images.jsonnet";
|
||||
|
||||
local cassandra = import "components/cassandra.jsonnet";
|
||||
local pulsar = import "components/pulsar.jsonnet";
|
||||
local milvus = import "components/milvus.jsonnet";
|
||||
local grafana = import "components/grafana.jsonnet";
|
||||
local trustgraph = import "components/trustgraph.jsonnet";
|
||||
local claude = import "components/claude.jsonnet";
|
||||
|
||||
local config = cassandra + pulsar + milvus + grafana + trustgraph + {
|
||||
services +: {
|
||||
|
||||
"text-completion": base + {
|
||||
image: images.trustgraph,
|
||||
command: [
|
||||
"text-completion-claude",
|
||||
"-p",
|
||||
url.pulsar,
|
||||
"-k",
|
||||
"${CLAUDE_KEY}",
|
||||
],
|
||||
},
|
||||
|
||||
"text-completion-rag": base + {
|
||||
image: images.trustgraph,
|
||||
command: [
|
||||
"text-completion-claude",
|
||||
"-p",
|
||||
url.pulsar,
|
||||
"-k",
|
||||
"${CLAUDE_KEY}",
|
||||
"-i",
|
||||
"non-persistent://tg/request/text-completion-rag",
|
||||
"-o",
|
||||
"non-persistent://tg/response/text-completion-rag-response",
|
||||
],
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
local config = cassandra + pulsar + milvus + grafana + trustgraph + claude;
|
||||
|
||||
std.manifestYamlDoc(config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue