参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
bucket_name | str | Couchbase bucket 的名称 | Required |
scope_name | str | bucket 内的 scope 的名称 | Required |
collection_name | str | scope 内的 collection 的名称 | Required |
couchbase_connection_string | str | Couchbase 集群连接字符串 | Required |
cluster_options | ClusterOptions | 用于配置 Couchbase 集群连接的选项 | Required |
search_index | Union[str, SearchIndex] | 搜索索引配置,可以是索引名称或 SearchIndex 定义 | Required |
embedder | Embedder | 用于生成 embedding 的 embedder 实例 | OpenAIEmbedder() |
overwrite | bool | 是否覆盖现有 collection | False |
is_global_level_index | bool | 搜索索引是否为全局级别 | False |
wait_until_index_ready | Optional[float] | 等待索引就绪的秒数 | None |
batch_limit | int | 单个批次处理的最大文档数(适用于同步和异步操作) | 500 |