跳到主要内容

Couchbase

捆绑包 (Bundles) 包含支持 Langflow 与特定第三方集成的自定义组件。

本页介绍了 Couchbase 捆绑包中可用的组件。

Couchbase 向量存储 (Couchbase vector store)

Couchbase 组件使用 CouchbaseSearchVectorStore 实例读取和写入 Couchbase 向量存储。

关于向量存储实例

Because Langflow is based on LangChain, vector store components use an instance of LangChain vector store to drive the underlying read and write functions. These instances are provider-specific and configured according to the component's parameters, such as the connection string, index name, and schema.

In component code, this is often instantiated as vector_store, but some vector store components use a different name, such as the provider name.

Some LangChain classes don't expose all possible options as component parameters. Depending on the provider, these options might use default values or allow modification through environment variables, if they are supported in Langflow. For information about specific options, see the LangChain API reference and vector store provider's documentation.

If you use a vector store component to query your vector database, it produces search results that you can pass to downstream components in your flow as a list of Data objects or a tabular DataFrame. If both types are supported, you can set the format near the vector store component's output port in the visual editor.

提示

有关在流中使用向量数据库的教程,请参阅 创建向量 RAG 聊天机器人

Couchbase 参数

您可以检查向量存储组件的参数,以详细了解其接受的输入、支持的功能以及如何配置它。

Some parameters are hidden by default in the visual editor. You can modify all parameters through the Controls in the component's header menu.

Some parameters are conditional, and they are only available after you set other parameters or select specific options for other parameters. Conditional parameters may not be visible on the Controls pane until you set the required dependencies.

有关接受的值和功能的信息,请参阅 Couchbase 文档 或检查 组件代码

名称类型描述
couchbase_connection_stringSecretString输入参数。Couchbase 集群连接字符串。必填。
couchbase_usernameString输入参数。用于身份验证的 Couchbase 用户名。必填。
couchbase_passwordSecretString输入参数。用于身份验证的 Couchbase 密码。必填。
bucket_nameString输入参数。Couchbase 存储桶的名称。必填。
scope_nameString输入参数。Couchbase 作用域的名称。必填。
collection_nameString输入参数。Couchbase 集合的名称。必填。
index_nameString输入参数。Couchbase 索引的名称。必填。
ingest_dataData输入参数。要加载到向量存储中的记录。仅与写入操作相关。
search_queryString输入参数。向量搜索的查询字符串。仅与读取操作相关。
cache_vector_storeBoolean输入参数。如果为 true,组件将在内存中缓存向量存储以加快读取速度。默认值:启用 (true)。
embeddingEmbeddings输入参数。用于向量存储的嵌入函数。
number_of_resultsInteger输入参数。要返回的最大搜索结果数。默认值:4。仅与读取操作相关。
Search