-
Notifications
You must be signed in to change notification settings - Fork 114
/
.env.example
28 lines (24 loc) · 1.06 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ENVIRONMENT=production
# You can generate a new secret key by running the following command
# $ python3 -c "import secrets; print(secrets.token_urlsafe(32))"
# SECRET_KEY is very important, please do not share it with others,
# SECRET_KEY must greater or equal to 32 characters.
SECRET_KEY=
# Replace with your own sentry dsn, leave it commented if you don't want to use sentry
# SENTRY_DSN=https://[email protected]/xxxxxx
# Replace with your own TiDB cluster connection information,
# TiDB Serverless is recommended. You can quickly create one from https://tidbcloud.com/
TIDB_HOST=xxxxx.prod.aws.tidbcloud.com
TIDB_USER=
TIDB_PASSWORD=
TIDB_DATABASE=
TIDB_SSL=true
# EMBEDDING_MAX_TOKENS indicates the max size of document chunks.
#
# EMBEDDING_MAX_TOKENS should be smaller than the embedding model's max tokens due
# to the tokenizer difference. (see: https://github.com/pingcap/autoflow/issues/397)
#
# Go to https://tidb.ai/docs/embedding-model to check the max tokens of the embedding model.
#
# Notice: this variable will be deprecated in the future.
EMBEDDING_MAX_TOKENS=2048