mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 09:07:20 +08:00
95 lines
2.1 KiB
JSON
95 lines
2.1 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": "Prompt Tuning",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "uv",
|
|
"args": [
|
|
"poe", "prompt-tune",
|
|
"--config",
|
|
"${input:root_folder}/settings.yaml",
|
|
]
|
|
},
|
|
{
|
|
"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
|
|
},
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
} |