使用n8n中的HTTP Request节点清空pinecones向量数据库

javascript 复制代码
{
  "name": "pinecone清空数据库",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "2050c579-e2be-4da4-9a6a-0f9c02605bf9",
      "name": "When clicking 'Execute workflow'"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://010402-sm3wjzl.svc.aped-4627-b74a.pinecone.io/vectors/delete",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n  \"Api-Key\":\"xxxx\"\n}",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n    \"deleteAll\": true,\n    \"namespace\": \"data1\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        272,
        0
      ],
      "id": "ffa87fde-9ee4-49ca-8aa0-48235c187eda",
      "name": "HTTP Request"
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking 'Execute workflow'": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b0f37131-0cae-447f-84fb-31264e1e1822",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "e6d562a11669b4d2f353eafef58b0a2d41d2839326a8b4201a24f4610bf43de1"
  },
  "id": "HPp7lSl3tIvf93q3",
  "tags": []
}

创建数据库时要使用命名空间

参考链接

https://blog.csdn.net/xutongbao/article/details/156569662

https://chat.xutongbao.top/n8n/

相关推荐
小北方城市网1 天前
第 9 课:Python 全栈项目性能优化实战|从「能用」到「好用」(企业级优化方案|零基础落地)
开发语言·数据库·人工智能·python·性能优化·数据库架构
ChineHe1 天前
Redis入门篇001_Redis简介与特性
数据库·redis·缓存
仓颉也为难1 天前
全表扫和索引在哪种场景哪个效率高、基线分水岭在哪
数据库
Anthony_2311 天前
MySql常用SQL命令
服务器·数据库·sql·mysql·http·oracle·udp
一直在追1 天前
大数据转型的“降维打击”:当分布式架构遇上向量数据库 (Milvus & ES 实战)
大数据·数据库
勇气要爆发1 天前
内网 IP 怎么访问互联网?NAT 技术与“小区保安”的比喻
网络·网络协议·tcp/ip·nat
E_ICEBLUE1 天前
PPT 智能提取与分析实战:把演示文档变成结构化数据
数据库·python·powerpoint
困知勉行19851 天前
Redis数据结构及其底层实现
数据库·redis·缓存
一直在追1 天前
告别 WHERE id=1!大数据工程师的 AI 觉醒:手把手带你拆解向量数据库 (RAG 核心)
大数据·数据库