从网站填充Pinecone向量数据库#
Use n8n to scrape a website, load the data into Pinecone, then query it using a chat workflow. This workflow uses the HTTP node to get website data, extracts the relevant content using the HTML node, then uses the Pinecone Vector Store node to send it to Pinecone.
主要特性#
该工作流使用:
- HTTP node: 获取网站数据。
- HTML node: simplifies the data by extracting the main content from the page.
- Pinecone Vector Store node 和 Embeddings OpenAI:将数据转换为向量并存储在Pinecone中。
- Chat Trigger 和 Question and Answer Chain 用于查询向量数据库。
使用示例#
要将模板加载到您的n8n实例中:
- 下载工作流JSON文件。
- 在你的n8n实例中打开一个新的工作流。
- 复制JSON内容,或选择工作流菜单
> 从文件导入...。
示例工作流使用便签来引导您:
- 黄色:备注和信息。
- 绿色:运行工作流的说明。
- 橙色:您需要更改某些内容以使工作流程正常运行。
- 蓝色:突出示例中的关键特性。