forked from brevia-ai/brevia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
104 lines (88 loc) · 2.56 KB
/
.env.sample
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## Secrets that must be available as environment variables
# Used by LLM API services (api keys or access tokens for instance)
# and by other third party services that need specific env variables
BREVIA_ENV_SECRETS='{
"OPENAI_API_KEY": "#########",
"COHERE_API_KEY": "#####"
}'
## QA vars
# QA completion LLM
QA_COMPLETION_LLM='{
"_type": "openai-chat",
"model_name": "gpt-3.5-turbo-16k",
"temperature": 0,
"max_tokens": 200,
"verbose": true
}'
# QA followup LLM
QA_FOLLOWUP_LLM='{
"_type": "openai-chat",
"model_name": "gpt-3.5-turbo-16k",
"temperature": 0,
"max_tokens": 200,
"verbose": true
}'
QA_FOLLOWUP_SIM_THRESHOLD=0.735
# Chat history - uncomment to disable session conversation, avoiding chat history loading
# QA_NO_CHAT_HISTORY=True
# Access tokens secret - if missing no access token validity is checked
# Generate it with: openssl rand -hex 32
# TOKENS_SECRET=##########################
# Comma separated list of valid users - use double quotes!
# TOKENS_USERS="brevia,gustavo"
## Status
# Special token used by `GET /status` only
# STATUS_TOKEN=#############
## Search
# default number of documents to return in a vector search
SEARCH_DOCS_NUM=4
## Embedding
EMBEDDINGS='{"_type": "openai-embeddings"}'
## Index creation
TEXT_CHUNK_SIZE=2000
TEXT_CHUNK_OVERLAP=100
## Summarize
# Summarization LLM
SUMMARIZE_LLM='{
"_type": "openai-chat",
"model_name": "gpt-3.5-turbo-16k",
"temperature": 0,
"max_tokens": 2000
}'
SUMM_TOKEN_SPLITTER=4000
SUMM_TOKEN_OVERLAP=500
SUMM_DEFAULT_CHAIN=stuff
# General
VERBOSE_MODE=True
# OPENAPI
# Uncomment to block openapi urls - /docs, /redoc
# BLOCK_OPENAPI_URLS=True
## Feature flags
#
# Uncomment to detect question language with Spacy
# FEATURE_QA_LANG_DETECT=True
## DB vars
PGVECTOR_DRIVER=psycopg2
# host var is used on local development
# but ignored by docker compose
PGVECTOR_HOST=localhost
PGVECTOR_PORT=5432
PGVECTOR_DATABASE=brevia
PGVECTOR_USER=postgres
PGVECTOR_PASSWORD=postgres
PGVECTOR_POOL_SIZE=10
# used by docker compose only
PGVECTOR_VOLUME_NAME=pgvector-data
## PG ADMIN vars
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=admin
PGADMIN_PORT=4000
# used by docker compose only
PGADMIN_VOLUME_NAME=pgadmin-data
## Tracing - Langsmith
# if you have an account uncomment lines below and edit API_KEY and PROJECT vars
# NB: You may want to add these vars to BREVIA_ENV_SECRETS in a local development environment
# LANGCHAIN_TRACING_V2=true
# LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
# LANGCHAIN_API_KEY="########"
# LANGCHAIN_PROJECT="My Project"