mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-24 08:41:57 +01:00
105 lines
3.2 KiB
JSON
105 lines
3.2 KiB
JSON
/*
|
|
|
|
Copy this file into '.vscode/launch.json' or merge its
|
|
contents into your existing configurations.
|
|
|
|
*/
|
|
|
|
{
|
|
// 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": "Web Server",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"cwd": "${workspaceRoot}/web",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": [
|
|
"run", "dev"
|
|
],
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Model Server",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONUNBUFFERED": "1"
|
|
},
|
|
"args": [
|
|
"model_server.main:app",
|
|
"--reload",
|
|
"--port",
|
|
"9000"
|
|
]
|
|
},
|
|
{
|
|
"name": "API Server",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_ALL_MODEL_INTERACTIONS": "True",
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONUNBUFFERED": "1"
|
|
},
|
|
"args": [
|
|
"danswer.main:app",
|
|
"--reload",
|
|
"--port",
|
|
"8080"
|
|
]
|
|
},
|
|
{
|
|
"name": "Indexing",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "danswer/background/update.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"ENABLE_MINI_CHUNK": "false",
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONUNBUFFERED": "1",
|
|
"PYTHONPATH": "."
|
|
}
|
|
},
|
|
// Celery and all async jobs, usually would include indexing as well but this is handled separately above for dev
|
|
{
|
|
"name": "Background Jobs",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "scripts/dev_run_background_jobs.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONUNBUFFERED": "1",
|
|
"PYTHONPATH": "."
|
|
},
|
|
"args": [
|
|
"--no-indexing"
|
|
]
|
|
},
|
|
// 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": "Slack Bot",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "danswer/danswerbot/slack/listener.py",
|
|
"cwd": "${workspaceFolder}/backend",
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"env": {
|
|
"LOG_LEVEL": "DEBUG",
|
|
"PYTHONUNBUFFERED": "1",
|
|
"PYTHONPATH": "."
|
|
}
|
|
}
|
|
]
|
|
} |