Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generative_ai/rag/quickstart_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def quickstart(
# paths = ["https://drive.google.com/file/d/123", "gs://my_bucket/my_files_dir"] # Supports Google Cloud Storage and Google Drive Links

# Initialize Vertex AI API once per session
vertexai.init(project=PROJECT_ID, location="us-central1")
vertexai.init(project=PROJECT_ID, location="us-east4")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and consistency with other files in this directory (like test_rag_examples.py), consider defining the location as a module-level constant (e.g., LOCATION = "us-east4") at the top of the file and using that constant here. This makes it easier to update the region in the future if needed.


# Create RagCorpus
# Configure embedding model, for example "text-embedding-005".
Expand Down