Skip to main content

Storage

This interface stores files produced by BulkWriter. Use it to upload generated files to object storage or another remote location before calling bulkInsert().

typescript
interface Storage

METHODS:

  • write(localPath: string, remotePath: string): Promise<string>

    Stores a generated local file and returns the final path that should be passed to Milvus import APIs.

Example​

javascript
class S3Storage {
async write(localPath, remotePath) {
await uploadToS3(localPath, remotePath);
return `s3://bucket/${remotePath}`;
}
}
Minimum SDK versionv2.6.12