返回顶部
p

pineconePinecone向量数据库

Pinecone vector database — manage indexes, upsert vectors, query similarity search, manage namespaces, and track collections via the Pinecone API. Build semantic search, recommendation systems, and RAG pipelines with high-performance vector storage. Built for AI agents — Python stdlib only, zero dependencies. Use for vector search, semantic similarity, RAG applications, recommendation engines, and AI memory systems.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
375
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

pinecone

🌲 Pinecone

Pinecone 向量数据库 — 通过 Pinecone API 管理索引、上传向量、执行相似性搜索查询、管理命名空间以及跟踪集合。

功能特性

  • - 索引管理 — 创建、配置、删除索引
  • 向量上传 — 插入和更新带元数据的向量
  • 相似性搜索 — 查询最近邻
  • 命名空间管理 — 按命名空间组织向量
  • 元数据过滤 — 按元数据字段过滤查询
  • 集合管理 — 创建索引快照
  • 批量操作 — 批量上传和删除
  • 索引统计 — 向量数量、维度、使用情况
  • 稀疏-密集 — 使用稀疏向量进行混合搜索
  • 无服务器 — 自动扩展的无服务器索引

环境要求

变量必需描述
PINECONEAPIKEYPinecone 的 API 密钥/令牌

快速开始

bash

列出索引


python3 {baseDir}/scripts/pinecone.py indexes

bash

获取索引详情


python3 {baseDir}/scripts/pinecone.py index-get my-index

bash

创建索引


python3 {baseDir}/scripts/pinecone.py index-create {name:my-index,dimension:1536,metric:cosine,spec:{serverless:{cloud:aws,region:us-east-1}}}

bash

删除索引


python3 {baseDir}/scripts/pinecone.py index-delete my-index

命令

indexes

列出索引。 bash python3 {baseDir}/scripts/pinecone.py indexes

index-get

获取索引详情。 bash python3 {baseDir}/scripts/pinecone.py index-get my-index

index-create

创建索引。 bash python3 {baseDir}/scripts/pinecone.py index-create {name:my-index,dimension:1536,metric:cosine,spec:{serverless:{cloud:aws,region:us-east-1}}}

index-delete

删除索引。 bash python3 {baseDir}/scripts/pinecone.py index-delete my-index

upsert

上传向量。 bash python3 {baseDir}/scripts/pinecone.py upsert --index my-index {vectors:[{id:vec1,values:[0.1,0.2,...],metadata:{text:hello}}]}

query

查询相似向量。 bash python3 {baseDir}/scripts/pinecone.py query --index my-index {vector:[0.1,0.2,...],topK:10,includeMetadata:true}

fetch

按 ID 获取向量。 bash python3 {baseDir}/scripts/pinecone.py fetch --index my-index --ids vec1,vec2,vec3

delete

删除向量。 bash python3 {baseDir}/scripts/pinecone.py delete --index my-index --ids vec1,vec2

delete-namespace

删除命名空间中的所有向量。 bash python3 {baseDir}/scripts/pinecone.py delete-namespace --index my-index --namespace docs

stats

获取索引统计信息。 bash python3 {baseDir}/scripts/pinecone.py stats --index my-index

collections

列出集合。 bash python3 {baseDir}/scripts/pinecone.py collections

collection-create

从索引创建集合。 bash python3 {baseDir}/scripts/pinecone.py collection-create {name:backup,source:my-index}

namespaces

列出索引中的命名空间。 bash python3 {baseDir}/scripts/pinecone.py namespaces --index my-index

输出格式

所有命令默认输出 JSON 格式。添加 --human 参数可获得可读的格式化输出。

bash

JSON(默认,用于程序化使用)


python3 {baseDir}/scripts/pinecone.py indexes --limit 5

人类可读格式

python3 {baseDir}/scripts/pinecone.py indexes --limit 5 --human

脚本参考

脚本描述
{baseDir}/scripts/pinecone.py主 CLI — 所有 Pinecone 操作

数据策略

此技能从不本地存储数据。所有请求直接发送到 Pinecone API,结果返回至标准输出。您的数据保留在 Pinecone 服务器上。

致谢


M. Abidi 构建 | agxntsix.ai YouTube | GitHub 属于 OpenClaw 代理的 AgxntSix 技能套件 的一部分。

📅 需要为您的业务设置 OpenClaw 的帮助? 预约免费咨询

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pinecone-1776203127 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pinecone-1776203127 技能

通过命令行安装

skillhub install pinecone-1776203127

下载

⬇ 下载 pinecone v1.0.0(免费)

文件大小: 4.27 KB | 发布时间: 2026-4-15 12:13

v1.0.0 最新 2026-4-15 12:13
Initial release of pinecone vector database skill.

- Manage Pinecone indexes: create, configure, list, and delete.
- Upsert, fetch, query, and delete vectors with support for metadata and batch operations.
- Organize and manage vectors by namespaces and collections (snapshots).
- Perform similarity search and hybrid sparse-dense search.
- Requires only Python 3.10+ stdlib (no dependencies), using the Pinecone API.
- All commands are CLI-based and output JSON by default; add --human for readable output.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部