Skip to main content
This example shows how to add content from a Google Cloud Storage (GCS) bucket to your knowledge base. This allows you to process documents stored in Google Cloud without downloading them locally.

Code

gcs.py

Usage

1

Install libraries

2

Configure Google Cloud credentials

Set up your GCS credentials using one of these methods:
  • Service Account Key: Set GOOGLE_APPLICATION_CREDENTIALS environment variable
  • gcloud CLI: gcloud auth application-default login
  • Workload Identity (if running on Google Cloud)
3

Run PgVector

4

Run the example

Params