跳到主要内容

Qdrant

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

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

Qdrant 向量存储 (Qdrant vector store)

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

关于向量存储实例

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 聊天机器人

Qdrant 向量存储参数

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

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.

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

名称类型描述
collection_nameString输入参数。Qdrant 集合 (collection) 的名称。
hostString输入参数。Qdrant 服务器主机名。
portInteger输入参数。Qdrant 服务器端口。
grpc_portInteger输入参数。Qdrant gRPC 端口。
api_keySecretString输入参数。Qdrant 的 API 密钥。
prefixString输入参数。Qdrant 的前缀。
timeoutInteger输入参数。Qdrant 操作的超时时间。
pathString输入参数。Qdrant 的路径。
urlString输入参数。Qdrant 的 URL。
distance_funcString输入参数。用于向量相似性的距离函数。
content_payload_keyString输入参数。内容负载键。
metadata_payload_keyString输入参数。元数据负载键。
search_queryString输入参数。用于相似性搜索的查询。
ingest_dataData输入参数。要摄取到向量存储中的数据。
embeddingEmbeddings输入参数。要使用的嵌入函数。
number_of_resultsInteger输入参数。搜索中返回的结果数量。
Search