使用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/

相关推荐
Thanks_ks26 分钟前
HTTPS:浏览器地址栏那把锁的工作原理
http·网络安全·https·tls·加密算法·数字证书·中间人攻击
普通人630 分钟前
MySQL_FIND_IN_SET函数详解
android·数据库·mysql
真上帝的左手30 分钟前
4. 关系型数据库-MySQL-Canal 进阶
数据库·mysql·canal
xiaoye-duck43 分钟前
《C++ 项目:手写大模型接入 SDK》DataManager数据管理模块:SQLite持久化存储
开发语言·数据库·c++·sqlite
杨凯凡2 小时前
Spring Boot 大文件下载如何实现断点续传?HTTP Range、206 与 416 实战
spring boot·后端·http
唐老板2 小时前
uuidv7 来了:为什么别再拿 uuidv4 当主键了
数据库
吴建旭 智宅焕11 小时前
智能家居全国交付中执行端能力跃迁的架构设计:从标准装调到交付专家的系统化路径
网络·网络协议·智能家居
Dream Cosmos15 小时前
传输层协议之UDP
网络·网络协议·udp
SelectDB15 小时前
让变更流出 Doris:Apache Doris 5.0 基于增量计算的 CDC 技术解析
数据库