Skip to main content

Configuration

The scripts require several configuration values. While they are currently hardcoded, the recommended approach is to use environment variables. Create a .env file in the root of the project (this file is git-ignored).

# .env file
API_KEY="your_openai_api_key"
PROJECT_ID="your_gcp_project_id"
REGION="your_gcp_region"
INDEX_ID="your_vertex_ai_index_id"
BUCKET_NAME="your_gcs_bucket_name"
INDEX_ENDPOINT_ID="your_vertex_ai_index_endpoint_id"
DEPLOYED_INDEX_ID="your_deployed_index_id"

Note: You would need to modify the Python scripts to load these variables from the .env file (e.g., using the python-dotenv library).