mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 00:57:23 +08:00
launch.json changes
This commit is contained in:
parent
c296f1ae15
commit
d79c496f39
98
.vscode/launch.json
vendored
98
.vscode/launch.json
vendored
@ -2,6 +2,7 @@
|
|||||||
"_comment": "Use this file to configure the graphrag project for debugging. You may create other configuration profiles based on these or select one below to use.",
|
"_comment": "Use this file to configure the graphrag project for debugging. You may create other configuration profiles based on these or select one below to use.",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Indexer",
|
"name": "Indexer",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
@ -27,17 +28,6 @@
|
|||||||
"--query", "${input:query}"
|
"--query", "${input:query}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Prompt Tuning",
|
|
||||||
"type": "debugpy",
|
|
||||||
"request": "launch",
|
|
||||||
"module": "uv",
|
|
||||||
"args": [
|
|
||||||
"poe", "prompt-tune",
|
|
||||||
"--config",
|
|
||||||
"${input:root_folder}/settings.yaml",
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Debug Integration Pytest",
|
"name": "Debug Integration Pytest",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
@ -74,6 +64,30 @@
|
|||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": false
|
"justMyCode": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Debug Prompt Tuning",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "uv",
|
||||||
|
"args": [
|
||||||
|
"poe", "prompt-tune",
|
||||||
|
"--root",
|
||||||
|
"${input:root_folder}",
|
||||||
|
"--domain", "${input:domain}",
|
||||||
|
"--n-subset-max", "${input:subset_max}",
|
||||||
|
"--k", "${input:k}",
|
||||||
|
"--limit", "${input:limit}",
|
||||||
|
"--max-tokens", "${input:max_tokens}",
|
||||||
|
"--min-examples-required", "${input:min_examples_required}",
|
||||||
|
"--chunk-size", "${input:chunk_size}",
|
||||||
|
"--overlap", "${input:overlap}",
|
||||||
|
"--language", "${input:language}",
|
||||||
|
"--no-discover-entity-types",
|
||||||
|
"--output", "${input:output}"
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
@ -90,6 +104,66 @@
|
|||||||
"id": "query",
|
"id": "query",
|
||||||
"type": "promptString",
|
"type": "promptString",
|
||||||
"description": "Enter the query text"
|
"description": "Enter the query text"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"id": "domain",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the domain for prompt tuning",
|
||||||
|
"default": "christmas tales"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "subset_max",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the n-subset-max value",
|
||||||
|
"default": "512"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "k",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the k value",
|
||||||
|
"default": "15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "limit",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the limit value",
|
||||||
|
"default": "15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "max_tokens",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the max tokens value",
|
||||||
|
"default": "2048"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "min_examples_required",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the min examples required value",
|
||||||
|
"default": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "chunk_size",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the chunk size value",
|
||||||
|
"default": "1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "overlap",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the overlap value",
|
||||||
|
"default": "128"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "language",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the language",
|
||||||
|
"default": "English"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "output",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the output path for prompt tuning results",
|
||||||
|
"default": "output/prompt_tuning"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user