mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-17 19:35:13 +02:00
Tweak GraphRAG and DocRAG params, path hops == 2 (#312)
This commit is contained in:
parent
ef845d6c9b
commit
88768a791b
2 changed files with 8 additions and 3 deletions
|
|
@ -18,6 +18,8 @@ local prompts = import "prompts/mixtral.jsonnet";
|
||||||
"document-rag",
|
"document-rag",
|
||||||
"-p",
|
"-p",
|
||||||
url.pulsar,
|
url.pulsar,
|
||||||
|
"--doc-limit",
|
||||||
|
std.toString($["document-rag-doc-limit"]),
|
||||||
"--prompt-request-queue",
|
"--prompt-request-queue",
|
||||||
"non-persistent://tg/request/prompt-rag",
|
"non-persistent://tg/request/prompt-rag",
|
||||||
"--prompt-response-queue",
|
"--prompt-response-queue",
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,10 @@ local url = import "values/url.jsonnet";
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
"graph-rag-entity-limit":: 20,
|
"graph-rag-entity-limit":: 50,
|
||||||
"graph-rag-triple-limit":: 10,
|
"graph-rag-triple-limit":: 30,
|
||||||
"graph-rag-max-subgraph-size":: 1000,
|
"graph-rag-max-subgraph-size":: 400,
|
||||||
|
"graph-rag-max-path-length":: 2,
|
||||||
|
|
||||||
"kg-extract-definitions" +: {
|
"kg-extract-definitions" +: {
|
||||||
|
|
||||||
|
|
@ -119,6 +120,8 @@ local url = import "values/url.jsonnet";
|
||||||
std.toString($["graph-rag-triple-limit"]),
|
std.toString($["graph-rag-triple-limit"]),
|
||||||
"--max-subgraph-size",
|
"--max-subgraph-size",
|
||||||
std.toString($["graph-rag-max-subgraph-size"]),
|
std.toString($["graph-rag-max-subgraph-size"]),
|
||||||
|
"--max-path-length",
|
||||||
|
std.toString($["graph-rag-max-path-length"]),
|
||||||
])
|
])
|
||||||
.with_limits("0.5", "128M")
|
.with_limits("0.5", "128M")
|
||||||
.with_reservations("0.1", "128M");
|
.with_reservations("0.1", "128M");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue