使用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 天前
利用实时数据管道与 SQL2API 重构企业自动化审计架构
数据库·sql·低代码
麦聪聊数据1 天前
重构开放生态:利用 QuickAPI 跨越遗留系统与敏捷交付的工程实践
数据库·sql·低代码·restful
百结2141 天前
Mysql数据库操作
数据库·mysql·oracle
keep one's resolveY1 天前
时区问题解决
数据库
Leinwin1 天前
OpenClaw 多 Agent 协作框架的并发限制与企业化规避方案痛点直击
java·运维·数据库
qq_417695051 天前
机器学习与人工智能
jvm·数据库·python
漫随流水1 天前
旅游推荐系统(view.py)
前端·数据库·python·旅游
ego.iblacat1 天前
MySQL 服务基础
数据库·mysql
Maverick061 天前
Oracle Redo 日志操作手册
数据库·oracle
攒了一袋星辰1 天前
高并发强一致性顺序号生成系统 -- SequenceGenerator
java·数据库·mysql