Skip to content
Storage

Vector Bucket 本地开发

Develop and test vector bucket integrations in your local environment with the Supabase CLI.

你现在可以使用 Supabase CLI 在本地环境中开发和测试 Vector Bucket 集成了。

🌐 You can now develop and test Vector Bucket integrations in your local environment using the Supabase CLI.

这让你可以在不需要部署到实时环境的情况下,构建和迭代你的向量搜索应用。确保你已安装最新版本的 Supabase CLI 才能使用这个功能。

🌐 This allows you to build and iterate on your vector search applications without needing to deploy to a live environment. Make sure you have the latest version of the Supabase CLI installed to access this feature.

设置本地向量桶 #

🌐 Setting up local vector buckets

确保你在 config.toml 文件中启用了这个功能:

🌐 Make sure you have the feature enabled in your config.toml file:

1
# Store vector embeddings in S3 for large and durable datasets
2
[storage.vector]
3
enabled = true

声明式配置 #

🌐 Declarative configuration

你可以在 config.toml 文件中使用以下语法来定义你的向量桶:

🌐 You can define your vector buckets in the config.toml file using the following syntax:

1
[storage.vector.buckets.documents-openai]
2
[storage.vector.buckets.images]

然后使用 supabase seed buckets 在你的本地环境或关联项目中创建存储桶。

🌐 Then use supabase seed buckets to create the buckets in your local environment or linked project.