mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-10 04:49:29 +02:00
Allow setting QA_TIMEOUT from env var (#258)
Co-authored-by: Yuhong Sun <yuhongsun96@gmail.com>
This commit is contained in:
parent
b1bd0b42e5
commit
758015baa5
@ -115,7 +115,7 @@ NUM_RERANKED_RESULTS = 15
|
||||
NUM_GENERATIVE_AI_INPUT_DOCS = 5
|
||||
# 1 edit per 2 characters, currently unused due to fuzzy match being too slow
|
||||
QUOTE_ALLOWED_ERROR_PERCENT = 0.05
|
||||
QA_TIMEOUT = 10 # 10 seconds
|
||||
QA_TIMEOUT = int(os.environ.get("QA_TIMEOUT", "10")) # 10 seconds
|
||||
# Include additional document/chunk metadata in prompt to GenerativeAI
|
||||
INCLUDE_METADATA = False
|
||||
|
||||
|
@ -28,6 +28,7 @@ services:
|
||||
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-typesense_api_key}
|
||||
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||
- DISABLE_AUTH=${DISABLE_AUTH:-True}
|
||||
- QA_TIMEOUT=${QA_TIMEOUT:-}
|
||||
- OAUTH_TYPE=${OAUTH_TYPE:-google}
|
||||
- OPENID_CONFIG_URL=${OPENID_CONFIG_URL:-}
|
||||
- GOOGLE_OAUTH_CLIENT_ID=${GOOGLE_OAUTH_CLIENT_ID:-}
|
||||
|
Loading…
x
Reference in New Issue
Block a user