S3LoaderOptions
Auto-generated API reference for S3LoaderOptions.
Interface: S3LoaderOptions
Defined in: packages/rag/src/loaders.ts:172
Document loaders: small async functions returning InputDocument[] ready to
pipe into RAG.ingest. Framework-agnostic; each accepts a custom fetch.
#Extends
#Properties
#bucket
bucket:
string
Defined in: packages/rag/src/loaders.ts:178
#client
client:
S3LikeClient
Defined in: packages/rag/src/loaders.ts:177
AWS SDK v3 S3Client-shaped client. Bring your own to keep the bundle
lean. Works with R2 / MinIO / etc. by configuring the client's endpoint.
#commands?
optionalcommands?:object
Defined in: packages/rag/src/loaders.ts:184
AWS SDK v3 commands. Pass them in to skip the dynamic import:
\{ ListObjectsV2Command, GetObjectCommand \} from @aws-sdk/client-s3.
Optional β when omitted the loader resolves them lazily.
#GetObjectCommand
GetObjectCommand: (
input) =>object
Parameters
input
Record<string, unknown>
Returns
object
input
input:
Record<string,unknown>
#ListObjectsV2Command
ListObjectsV2Command: (
input) =>object
Parameters
input
Record<string, unknown>
Returns
object
input
input:
Record<string,unknown>
#fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: packages/rag/src/loaders.ts:10
#Call Signature
(
input,init?):Promise<Response>
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
#Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | Request | URL
init?
RequestInit
Returns
Promise<Response>
#Inherited from
#filter?
optionalfilter?: (key) =>boolean
Defined in: packages/rag/src/loaders.ts:191
Include only keys matching this predicate after listing.
#Parameters
key
string
#Returns
boolean
#maxFiles?
optionalmaxFiles?:number
Defined in: packages/rag/src/loaders.ts:193
Cap on number of objects to load. Default 100.
#prefix?
optionalprefix?:string
Defined in: packages/rag/src/loaders.ts:189
Limit to keys under this prefix.