-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Variables
Neel Patel edited this page Mar 23, 2026
·
1 revision
The following environment variables must be set, either configured in the system that is hosting the frontend or backend, or in a file named .env in the frontend or backend folders, respectively.
If making an .env file, copy the values from here and paste them into a file called .env located in the frontend directory.
VITE_SUPABASE_URL=<Base URL for the database>
VITE_SUPABASE_PUBLISHABLE_OR_ANON_KEY=<Supabase publishable key>
VITE_API_BASE_URL=<Base URL for the backend API>
EXCEL_ROWS_PER_VECTOR=10
If making an .env file, copy the values from here and paste them into a file called .env located in the backend directory.
AI_API_PROVIDER=<Either AZURE, OLLAMA, or OPENAI>
OLLAMA_API_BASE=<Base URL for an Ollama server>
AZURE_API_KEY=<API key for Azure AI Foundry>
AZURE_API_BASE=<Base URL for Azure AI Foundry>
AZURE_API_VERSION=<API version, eg 2024-05-01-preview>
AZURE_API_KEY_EMBEDDING=<API key for Azure AI Foundry for an embedding model>
AZURE_API_BASE_EMBEDDING=<Base URL for Azure AI Foundry for an embedding model>
AZURE_API_VERSION_EMBEDDING=<API version, eg 2024-05-01-preview>
OPENAI_API_KEY=<API key for OpenAI>
OPENAI_API_BASE=<Base URL for OpenAI>
SUPABASE_URL=<Base URL for the database>
SUPABASE_SERVICE_ROLE_KEY=<sb_secret key>
SUPABASE_DB_URL=<postgresql://postgres: URL to SUPABASE_URL>
EXCEL_ROWS_PER_VECTOR=5
SUPABASE_INSERT_BATCH_SIZE=200
SUPABASE_VECTOR_TABLE=rag_chunks
SUPABASE_CONTENT_COLUMN=content
SUPABASE_METADATA_COLUMN=metadata
SUPABASE_ID_COLUMN=id
SUPABASE_SOURCE_FILENAME_COLUMN=source_filename
SUPABASE_SOURCE_BUCKET_COLUMN=source_bucket
SUPABASE_SOURCE_LAST_UPDATED_COLUMN=source_last_updated
SUPABASE_MATCH_RPC=match_documents
SUPABASE_MATCH_MODE=embedding
SUPABASE_MATCH_COUNT=5