Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python Artifacts

python/*/lib/
dist/

Expand Down Expand Up @@ -56,3 +56,9 @@ docsite/

# Jupyter notebook
.ipynb_checkpoints/


**/__pycache__/
workdir/
sac/
prompts/
90 changes: 60 additions & 30 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,67 @@
"version": "0.2.0",
"configurations": [
{
"name": "Indexer",
"type": "debugpy",
"request": "launch",
"module": "poetry",
"args": [
"poe", "index",
"--root", "<path_to_ragtest_root_demo>"
"name": "Debug Graphrag init",
"type": "python",
"request": "launch",
"module": "graphrag",
"args": [
"init",
"--root", "${workspaceFolder}/workdir"
],
},
"console": "integratedTerminal"
},
{
"name": "Query",
"type": "debugpy",
"request": "launch",
"module": "poetry",
"args": [
"poe", "query",
"--root", "<path_to_ragtest_root_demo>",
"--method", "global",
"--query", "What are the top themes in this story",
]
},
{
"name": "Prompt Tuning",
"type": "debugpy",
"request": "launch",
"module": "poetry",
"args": [
"poe", "prompt-tune",
"--config",
"<path_to_ragtest_root_demo>/settings.yaml",
]
}
"name": "Debug Graphrag index",
"type": "python",
"request": "launch",
"module": "graphrag",
"args": [
"index",
"--root", "${workspaceFolder}/workdir"
],
"justMyCode": false, // 设置为 false 以调试第三方库
"console": "integratedTerminal"
},
{
"name": "Run Graphrag index",
"type": "python",
"request": "launch",
"module": "graphrag",
"args": [
"index",
"--root", "${workspaceFolder}/workdir"
],
"justMyCode": false, // 设置为 false 以调试第三方库
"console": "integratedTerminal",
"noDebug": true
},
{
"name": "Debug Graphrag prompt-tune",
"type": "python",
"request": "launch",
"module": "graphrag",
"args": [
"prompt-tune",
"--root", "${workspaceFolder}/workdir",
"--config", "${workspaceFolder}/workdir/settings.yaml",
"--discover-entity-types"
],
"console": "integratedTerminal"
},
{
"name": "Run Graphrag prompt-tune",
"type": "python",
"request": "launch",
"module": "graphrag",
"args": [
"prompt-tune",
"--root", "${workspaceFolder}/workdir",
"--config", "${workspaceFolder}/workdir/settings.yaml",
"--discover-entity-types"
],
"console": "integratedTerminal",
"noDebug": true
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"node_modules{,/**}",
".vscode{,/**}"
],
"python.defaultInterpreterPath": "python/services/.venv/bin/python",
"python.defaultInterpreterPath": ".venv/bin/python",
"python.languageServer": "Pylance",
"cSpell.customDictionaries": {
"project-words": {
Expand Down
Loading