mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-07 13:10:24 +02:00
Developer Env Setup (#1710)
This commit is contained in:
12
.vscode/env_template.txt
vendored
12
.vscode/env_template.txt
vendored
@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
# For local dev, often user Authentication is not needed
|
# For local dev, often user Authentication is not needed
|
||||||
AUTH_TYPE=disabled
|
AUTH_TYPE=disabled
|
||||||
# This passes top N results to LLM an additional time for reranking prior to answer generation, quite token heavy so we disable it for dev generally
|
|
||||||
DISABLE_LLM_CHUNK_FILTER=True
|
|
||||||
|
|
||||||
|
|
||||||
# Always keep these on for Dev
|
# Always keep these on for Dev
|
||||||
@ -15,6 +13,11 @@ LOG_ALL_MODEL_INTERACTIONS=True
|
|||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
|
|
||||||
|
# This passes top N results to LLM an additional time for reranking prior to answer generation
|
||||||
|
# This step is quite heavy on token usage so we disable it for dev generally
|
||||||
|
DISABLE_LLM_CHUNK_FILTER=True
|
||||||
|
|
||||||
|
|
||||||
# Useful if you want to toggle auth on/off (google_oauth/OIDC specifically)
|
# Useful if you want to toggle auth on/off (google_oauth/OIDC specifically)
|
||||||
OAUTH_CLIENT_ID=<REPLACE THIS>
|
OAUTH_CLIENT_ID=<REPLACE THIS>
|
||||||
OAUTH_CLIENT_SECRET=<REPLACE THIS>
|
OAUTH_CLIENT_SECRET=<REPLACE THIS>
|
||||||
@ -42,3 +45,8 @@ FAST_GEN_AI_MODEL_VERSION=gpt-3.5-turbo
|
|||||||
# Python stuff
|
# Python stuff
|
||||||
PYTHONPATH=./backend
|
PYTHONPATH=./backend
|
||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
|
||||||
|
# Enable the full set of Danswer Enterprise Edition features
|
||||||
|
# NOTE: DO NOT ENABLE THIS UNLESS YOU HAVE A PAID ENTERPRISE LICENSE (or if you are using this for local testing/development)
|
||||||
|
ENABLE_PAID_ENTERPRISE_EDITION_FEATURES=False
|
||||||
|
5
.vscode/launch.template.jsonc
vendored
5
.vscode/launch.template.jsonc
vendored
@ -17,6 +17,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "${workspaceRoot}/web",
|
"cwd": "${workspaceRoot}/web",
|
||||||
"runtimeExecutable": "npm",
|
"runtimeExecutable": "npm",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
"run", "dev"
|
"run", "dev"
|
||||||
],
|
],
|
||||||
@ -28,6 +29,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "uvicorn",
|
"module": "uvicorn",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
"PYTHONUNBUFFERED": "1"
|
"PYTHONUNBUFFERED": "1"
|
||||||
@ -45,6 +47,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "uvicorn",
|
"module": "uvicorn",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"LOG_ALL_MODEL_INTERACTIONS": "True",
|
"LOG_ALL_MODEL_INTERACTIONS": "True",
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
@ -63,6 +66,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "danswer/background/update.py",
|
"program": "danswer/background/update.py",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"ENABLE_MINI_CHUNK": "false",
|
"ENABLE_MINI_CHUNK": "false",
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
@ -77,6 +81,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "scripts/dev_run_background_jobs.py",
|
"program": "scripts/dev_run_background_jobs.py",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
"PYTHONUNBUFFERED": "1",
|
"PYTHONUNBUFFERED": "1",
|
||||||
|
Reference in New Issue
Block a user