File size: 1,318 Bytes
b4297ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Setting up the environment

# Specify to start uvicorn app in dev or prod mode. default is dev if not set [prod|dev]
ENVIRONMENT=prod

# Allowed origins for CORS in production, separated by comma, no spaces
ALLOWED_ORIGINS=http://localhost:3000,https://smart-retrieval-demo.vercel.app

# Use Local LLM [true|false]
USE_LOCAL_LLM=true

# Use Local Vector Store [true|false]
USE_LOCAL_VECTOR_STORE=true

# Create the vector store [true|false], remember to change to false after creating for a one-time setup
CREATE_VECTOR_STORE=false

# OpenAI API Key
OPENAI_API_KEY=sk-YourOpenAIKey

# Backend API Authorization Settings
# Auth Header Name for the API
API_AUTH_HEADER_NAME=Authorization
# Alternate API Key Header Name for the API
API_KEY_HEADER_NAME=X-API-Key
# Ensure this key is the same in the frontend app environment
# https://generate-random.org/api-key-generator?count=1&length=128&type=mixed-numbers&prefix=sr-
BACKEND_API_KEY=sr-SomeRandomKey

# Supabase Settings
SUPABASE_URL=https://YourSupabaseProjectID.supabase.co
SUPABASE_ANON_KEY=YourSupabaseAnonKey
SUPABASE_JWT_SECRET=YourSupabaseJWTSecret
# Note: Rename 'postgres://' to 'postgresql://' in the connection string due to sqlalchemy not supporting 'postgres://'
POSTGRES_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/smart_retrieval