跳到主要内容

Pinecone

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

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

Pinecone 向量存储 (Pinecone vector store)

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

关于向量存储实例

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

Pinecone 向量存储参数

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

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.

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

名称类型描述
index_nameString输入参数。Pinecone 索引的名称。
namespaceString输入参数。索引的命名空间。
distance_strategyString输入参数。计算向量之间距离的策略。
pinecone_api_keySecretString输入参数。Pinecone 的 API 密钥。
text_keyString输入参数。记录中用作文本的键。
search_queryString输入参数。用于相似性搜索的查询。
ingest_dataData输入参数。要摄取到向量存储中的数据。
embeddingEmbeddings输入参数。要使用的嵌入函数。
number_of_resultsInteger输入参数。搜索中返回的结果数量。
Search