Skip to main content
This example shows how to add content from an Amazon S3 bucket to your knowledge base. This allows you to process documents stored in cloud storage without downloading them locally.

Code

s3.py

Usage

1

Install libraries

2

Configure AWS credentials

Set up your AWS credentials using one of these methods:
  • AWS CLI: aws configure
  • Environment variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  • IAM roles (if running on AWS infrastructure)
3

Run PgVector

4

Run the example

Params