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
andAWS_SECRET_ACCESS_KEY
- IAM roles (if running on AWS infrastructure)
3
Run PgVector
4
Run the example
Params
Parameter | Type | Default | Description |
---|---|---|---|
bucket_name | str | - | Name of the S3 bucket containing the file. |
bucket | Optional[S3Bucket] | - | Pre-configured S3 bucket object. |
key | str | - | S3 object key (file path) within the bucket. |
object | Optional[S3Object] | - | Pre-configured S3 object. |
prefix | Optional[str] | - | Path prefix for organizing files in the bucket. |