graphrag/.vscode/launch.json
2025-12-24 11:30:22 -06:00

169 lines
3.8 KiB
JSON

{
"_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",
"configurations": [
{
"name": "Indexer",
"type": "debugpy",
"request": "launch",
"module": "graphrag",
"args": [
"index",
"--root",
"${input:root_folder}"
],
"console": "integratedTerminal"
},
{
"name": "Query",
"type": "debugpy",
"request": "launch",
"module": "graphrag",
"args": [
"query",
"--root",
"${input:root_folder}",
"--method", "${input:query_method}",
"--query", "${input:query}"
]
},
{
"name": "Debug Integration Pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"./tests/integration/vector_stores",
"-k", "test_azure_ai_search"
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Debug Verbs Pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"./tests/verbs",
"-k", "test_generate_text_embeddings"
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Debug Smoke Pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"./tests/smoke",
"-k", "test_fixtures"
],
"console": "integratedTerminal",
"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": [
{
"id": "root_folder",
"type": "promptString",
"description": "Enter the root folder path"
},
{
"id": "query_method",
"type": "promptString",
"description": "Enter the query method (e.g., 'global', 'local')"
},
{
"id": "query",
"type": "promptString",
"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"
}
]
}