-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
122 lines (94 loc) · 4.16 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Example of .env file.
# Environment configuration
ENV=development
TOP_ASSIST_API_HOST=0.0.0.0
TOP_ASSIST_API_PORT=8080
TOP_ASSIST_METRICS_PORT=9090
TOP_ASSIST_METRICS_PORT_AUTOINCREMENT=1
TOP_ASSIST_LOGS_TEXT_COLOR=true
CONFLUENCE_BASE_URL=https://top-assist.atlassian.net/
CONFLUENCE_CLOUD_ID="???"
# Ignore import for pages with these labels
CONFLUENCE_IGNORE_LABELS=top-assist-ignore,archived
# Confluence page with stats data about Top Assist available spaces and pages
CONFLUENCE_STATS_PAGE_TITLE="Top Assist - Spaces (development)"
CONFLUENCE_STATS_PAGE_ID="???"
# Top Assist Confluence user
CONFLUENCE_USER="[email protected]"
CONFLUENCE_API_TOKEN="???"
# Confluence OAuth Credentials
CONFLUENCE_OAUTH_CLIENT_ID=
CONFLUENCE_OAUTH_CLIENT_SECRET=
CONFLUENCE_OAUTH_AUTHORIZATION_URL_TEMPLATE=https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id={client_id}&scope=search%3Aconfluence%20offline_access%20read%3Ame&redirect_uri={callback_url}&state={state}&response_type=code&prompt=consent
CONFLUENCE_OAUTH_REDIRECT_URI=http://localhost:8080/confluence/oauth/callback
# Initial URL to start the OAuth flow with Top assist on Confluence, useful if you have frontpage/proxy and need to access Top Assist before the Conflunce OAuth page
CONFLUENCE_OAUTH_TOP_ASSIST_REDIRECT_URL_TEMPLATE=http://localhost:8080/confluence/oauth/redirect/{state}
OPENAI_API_KEY="sk-???"
OPENAI_FAKE_API_KEY="sk-proj-R4nd0m5tRin6R4nd0m5tRin6R4nd0m5tRin6R4nd0m5tRin6"
# OpenAI assistants IDs
OPENAI_ASSISTANT_ID_QA=asst_put_assistant_id_associated_with_openai_api_key_here
OPENAI_ASSISTANT_ID_BASE=asst_put_assistant_id_associated_with_openai_api_key_here
SLACK_APP_TOKEN="xapp-slackappverysecrettoken"
SLACK_BOT_TOKEN="xoxb-slackbotverysecrettoken"
# Only handle events coming from specific Slack enterprise (organization) and/or team (workspace)
# Both values are optional and applied independently.
# "*" means that any value would be accepted.
SLACK_ALLOW_ENTERPRISE_ID=*
SLACK_ALLOW_TEAM_ID=*
SLACK_REPLY_QUESTIONS_IN_CHANNELS=true
# DB configuration
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=localhost
DB_PORT=5432
DB_NAME=top_assist
VECTOR_COLLECTIONS_PREFIX=TopAssist
# Normalized Distance between the result item and the search vector (threshold)
# Normalized to be between 1.0 (identical vectors) and 0.0 (perfect opposite).
PAGES_CERTAINTY_THRESHOLD=0.0
# Uncomment to switch to qdrant
# QDRANT_URL="http://localhost:6333"
WEAVIATE_API_KEY=
WEAVIATE_HTTP_HOST=localhost
WEAVIATE_HTTP_PORT=8000
WEAVIATE_GRPC_HOST=localhost
WEAVIATE_GRPC_PORT=50051
WEAVIATE_SECURE=false
# Datadog config
# See https://docs.datadoghq.com/tracing/trace_collection/library_config/python/ for more options
DD_ENV=development
DD_SERVICE=top-assist
# DD_VERSION=
DD_SERVICE_MAPPING=postgres:top-assist-postgres,requests:top-assist-request,grpc-client:top-assist-grpc-client,fastapi:top-assist-web
DD_OPENAI_SERVICE=top-assist-open-ai
DD_TRACE_ENABLED=false
DD_LOGS_INJECTION=false
DD_AGENT_HOST=localhost
DD_AGENT_PORT=8126
# Sentry
SENTRY_DSN=
# Prometheus
PROMETHEUS_MULTIPROC_DIR=tmp/prometheus_multiproc
# Key for encrypting users personal Confluence tokens.
# generate ones with:
# poetry run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode('utf-8'))"
CRYPTOGRAPHY_SECRET_KEY="S0mERandomKeyS0mERandomKeyS0mERandomKeySome="
# API Docs (This is disabled on staging/production)
TOP_ASSIST_API_DOCS_URL="/docs"
TOP_ASSIST_API_REDOCS_URL="/redocs"
# ADMIN
TOP_ASSIST_ADMIN_USER=admin
TOP_ASSIST_ADMIN_PASSWORD=admin
TOP_ASSIST_ADMIN_SESSION_SECRET_KEY=fake-session-secret
TOP_ASSIST_ADMIN_EXTRA_LINKS='[{ "name": "FastAPI Docs", "url": "/docs"}, { "name": "FastAPI ReDocs", "url": "/redocs"}]'
# DIFY
DIFY_API_ENDPOINT='https://dify.top-assist.net/v1/workflows/run'
DIFY_PROMPT_OPTIMIZER_API_KEY="app-w...."
# =========== Dev-only =========== #
MYPY_CACHE_DIR=".mypy_cache"
# Langchain & LangSmith
# To be able to track all the requests made by the Langchain API, you can set LangSmith as a proxy for local development.
# Visit https://smith.langchain.com/ to get your API key (Settings -> API Keys).
LANGCHAIN_API_KEY='lsv2_pt_.....'
LANGCHAIN_PROJECT="TopAssist development"
LANGCHAIN_TRACING_V2=false