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