mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-20 23:01:51 +01:00
65 lines
2.2 KiB
JSON
65 lines
2.2 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Danswer backend",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"DISABLE_AUTH": "True",
|
|
"TYPESENSE_API_KEY": "typesense_api_key",
|
|
"DYNAMIC_CONFIG_DIR_PATH": "./dynamic_config_storage",
|
|
},
|
|
"args": [
|
|
"danswer.main:app",
|
|
"--reload",
|
|
"--port",
|
|
"8080"
|
|
]
|
|
},
|
|
{
|
|
"name": "Danswer indexer",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "danswer/background/update.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONPATH": ".",
|
|
"TYPESENSE_API_KEY": "typesense_api_key",
|
|
"DYNAMIC_CONFIG_DIR_PATH": "./dynamic_config_storage",
|
|
},
|
|
},
|
|
{
|
|
"name": "Danswer temp files deletion",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "danswer/background/file_deletion.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONPATH": "${workspaceFolder}/backend",
|
|
},
|
|
},
|
|
// For the listner to access the Slack API,
|
|
// DANSWER_BOT_SLACK_APP_TOKEN & DANSWER_BOT_SLACK_BOT_TOKEN need to be set in .env file located in the root of the project
|
|
{
|
|
"name": "Danswer slack bot listener",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "danswer/listeners/slack_listener.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONPATH": ".",
|
|
},
|
|
}
|
|
]
|
|
} |