mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-27 08:21:00 +02:00
Environment Template for VSCode/Cursor (#1614)
This commit is contained in:
parent
b723627e0c
commit
a2065f018a
37
.vscode/env_template.txt
vendored
Normal file
37
.vscode/env_template.txt
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
# Copy this file to .env at the base of the repo and fill in the <REPLACE THIS> values
|
||||
# This will help with development iteration speed and reduce repeat tasks for dev
|
||||
# Also check out danswer/backend/scripts/restart_containers.sh for a script to restart the containers which Danswer relies on outside of VSCode/Cursor processes
|
||||
|
||||
AUTH_TYPE=disabled # For local dev, often user Authentication is not needed
|
||||
DISABLE_LLM_CHUNK_FILTER=True # 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
|
||||
|
||||
|
||||
# Always keep these on for Dev
|
||||
LOG_ALL_MODEL_INTERACTIONS=True # Logs all model prompts to stdout
|
||||
LOG_LEVEL=debug
|
||||
|
||||
|
||||
# Useful if you want to toggle auth on/off (google_oauth/OIDC specifically)
|
||||
OAUTH_CLIENT_ID=<REPLACE THIS>
|
||||
OAUTH_CLIENT_SECRET=<REPLACE THIS>
|
||||
REQUIRE_EMAIL_VERIFICATION=False # Generally not useful for dev, we don't generally want to set up an SMTP server for dev
|
||||
|
||||
|
||||
# Toggles on/off the EE Features
|
||||
NEXT_PUBLIC_ENABLE_PAID_EE_FEATURES=False
|
||||
|
||||
|
||||
# Set these so if you wipe the DB, you don't end up having to go through the UI every time
|
||||
GEN_AI_API_KEY=<REPLACE THIS>
|
||||
GEN_AI_MODEL_VERSION=gpt-3.5-turbo # If answer quality isn't important for dev, use 3.5 turbo due to it being cheaper
|
||||
FAST_GEN_AI_MODEL_VERSION=gpt-3.5-turbo
|
||||
|
||||
# For Danswer Slack Bot, overrides the UI values so no need to set this up via UI every time
|
||||
# Only needed if using DanswerBot
|
||||
#DANSWER_BOT_SLACK_APP_TOKEN=<REPLACE THIS>
|
||||
#DANSWER_BOT_SLACK_BOT_TOKEN=<REPLACE THIS>
|
||||
|
||||
|
||||
# Python stuff
|
||||
PYTHONPATH=./backend
|
||||
PYTHONUNBUFFERED=1
|
Loading…
x
Reference in New Issue
Block a user