-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.rag.example
More file actions
150 lines (123 loc) · 4.59 KB
/
Copy path.env.rag.example
File metadata and controls
150 lines (123 loc) · 4.59 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# ---------------------------------
# APPLICATION SETUP
# ---------------------------------
REDIS_URL=redis://redis:6379/0
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=rag
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# To use OpenRouter use OpenRouter url for OPENROUTER_API_BASE
# To use OpenAI define OpenAI url for OPENROUTER_API_BASE
OPENROUTER_API_KEY=
OPENROUTER_API_BASE=https://openrouter.ai/api/v1
CELERY_CONCURRENCY=2
MAX_TASK_CHILD=50
MAX_MEMORY_PER_CHILD=300000
# ONNX Runtime GPU flags, update if you have a GPU
CUDA_VISIBLE_DEVICES=
ORT_DISABLE_GPU=1
ORT_DYLD_DISABLE_GPU=1
# CORS Settings, in case you neeed it
CORS_ORIGINS=["http://localhost","http://localhost:3000","http://localhost:5173","http://localhost:8080","http://localhost:8081"]
# Rate limiter settings, disabled by default
ENABLE_RATE_LIMIT=false
CHUNK_RATE_LIMIT=30/minute
REPHRASE_RATE_LIMIT=30/minute
# MCP Server (disabled by default)
# Set MCP_ENABLE=1 to expose an MCP-compatible endpoint at /mcp (port 8000)
# MCP_API_KEY is required when MCP_ENABLE=1 — generate with: openssl rand -hex 32
MCP_ENABLE=0
#MCP_API_KEY=your-strong-random-key
# REST API token protection (optional but recommended when port 8000 is exposed)
# Set API_KEY to require Bearer token auth on all /api/ endpoints
#API_KEY=your-strong-random-key
# ---------------------------------
# CONNECTORS SETUP
# ---------------------------------
# S3 CONNECTORS:
# First bucket configuration
S3_ACCOUNT1_ENDPOINT=
S3_ACCOUNT1_ACCESS_KEY=
S3_ACCOUNT1_SECRET_KEY=
S3_ACCOUNT1_REGION=
S3_ACCOUNT1_USE_SSL=
# You can list multiple buckets here, separated by commas
S3_ACCOUNT1_BUCKETS=
# Each bucket can have its own ingestion schedule (in seconds), separated by comma
S3_ACCOUNT1_SCHEDULES=
# Seconds bucket configuration (optional)
#S3_ACCOUNT2_ENDPOINT=https://aws2.example.com
#S3_ACCOUNT2_ACCESS_KEY=your-access-key-id2
#S3_ACCOUNT2_SECRET_KEY=you-access-key-secret2
#S3_ACCOUNT2_REGION=us-west-2
#S3_ACCOUNT2_USE_SSL=True
#S3_ACCOUNT2_BUCKETS=bucket3,bucket4
#S3_ACCOUNT2_SCHEDULES=60,3600
# MEDIAWIKI CONNECTORS (optional):
#MEDIAWIKI1_HOST=wiki.example.org
#MEDIAWIKI1_SCHEDULES=3600
# Only needed for private wikis requiring login:
#MEDIAWIKI1_USERNAME=your-bot-username
#MEDIAWIKI1_PASSWORD=your-bot-password
#MEDIAWIKI2_HOST=wiki2.example.org
#MEDIAWIKI2_SCHEDULES=3600
# SERPPAPI CONNECTORS (optional):
#SERPAPI_KEY=your-serpapi-api-key
#SERPAPI_QUERIES="OpenAI news, Bitcoin price, Tesla updates"
#SERPAPI_SCHEDULES=60
# WEB CONNECTORS (optional):
#WEB1_URLS=https://example.com/page1,https://example.com/page2
#WEB1_SCHEDULES=60
#WEB2_SITEMAP_URL=https://example.com/sitemap.xml
#WEB2_INCLUDE_PREFIX=/blog/
#WEB2_SCHEDULES=60
# JIRA CONNECTORS (optional):
#JIRA1_SERVER_URL=https://your-org.atlassian.net
#JIRA1_EMAIL=your-email@example.com
#JIRA1_API_TOKEN=your-api-token
#JIRA1_JQL=project = MYPROJECT ORDER BY updated DESC
#JIRA1_SCHEDULES=3600
# PIPEDRIVE CONNECTORS (optional):
#PIPEDRIVE1_API_TOKEN=your-pipedrive-api-token
#PIPEDRIVE1_SCHEDULES=3600
#PIPEDRIVE2_API_TOKEN=your-second-pipedrive-api-token
#PIPEDRIVE2_SCHEDULES=3600
# SLACK CONNECTORS (optional):
#SLACK1_TOKEN=xoxb-your-bot-token
#SLACK1_CHANNEL_IDS=C1234567890,C0987654321
#SLACK1_CHANNEL_PATTERNS=general,^dev.*
#SLACK1_SCHEDULES=3600
# IMAP CONNECTORS (optional):
#IMAP1_HOST=imap.example.com
#IMAP1_USERNAME=user@example.com
#IMAP1_PASSWORD=your-app-password
#IMAP1_MAILBOXES=INBOX,Sent
#IMAP1_SCHEDULES=3600
# ONEDRIVE CONNECTORS (optional):
#ONEDRIVE1_CLIENT_ID=your-azure-app-client-id
#ONEDRIVE1_CLIENT_SECRET=your-azure-app-client-secret
#ONEDRIVE1_TENANT_ID=your-azure-tenant-id
#ONEDRIVE1_USER_PRINCIPAL_NAME=user@your-org.onmicrosoft.com
#ONEDRIVE1_SCHEDULES=3600
# SHAREPOINT CONNECTORS (optional):
#SHAREPOINT1_CLIENT_ID=your-azure-app-client-id
#SHAREPOINT1_CLIENT_SECRET=your-azure-app-client-secret
#SHAREPOINT1_TENANT_ID=your-azure-tenant-id
#SHAREPOINT1_SCHEDULES=3600
# GITHUB CONNECTORS (optional):
# Auth — mutually exclusive: GITHUB1_PERSONAL_TOKEN OR GITHUB1_APP_ID + GITHUB1_APP_INSTALLATION_ID + GITHUB1_APP_PRIVATE_KEY
#GITHUB1_PERSONAL_TOKEN=your-personal-access-token
# GitHub App auth (remove/comment out GITHUB1_PERSONAL_TOKEN above if using this):
#GITHUB1_APP_ID=
#GITHUB1_APP_INSTALLATION_ID=
# Private key must be the raw PEM contents on a single line with literal \n line breaks
#GITHUB1_APP_PRIVATE_KEY=
#GITHUB1_OWNER=your-org-or-username
#GITHUB1_REPO=your-repo-name
#GITHUB1_SCHEDULES=3600
# NOTION CONNECTORS (optional):
#NOTION1_INTEGRATION_TOKEN=secret_your-notion-integration-token
#NOTION1_PAGE_IDS=page-id-1,page-id-2
#NOTION1_DATABASE_IDS=database-id-1
#NOTION1_SCHEDULES=3600