Xpersona
P

Pinecone Search

CLAWHUB · Unverified

Pinecone vector search and document upload tool for knowledge base management Skill: Pinecone Search Owner: deki18 Summary: Pinecone vector search and document upload tool for knowledge base management Tags: database:0.1.1, latest:0.1.3, pinecone:0.1.1 Version history: v0.1.3 | 2026-04-02T06:04:58.804Z | user - Updated optional environment variable documentation: clarified that NAMESPACE is optional and defaults to "default". - Added "pineone" to the list of trigger keywords. - fix bugs. v0.1.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s174afwhm9a14rpprywp1p4ztd83j7g4:pinecone-search
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-deki18-pinecone-search/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

17,275 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: pinecone-search
description: Pinecone vector search and document upload tool for knowledge base management
tags:
  - pinecone
  - database
  - search
  - vector
  - knowledge-base
  - upload
  - embedding
keywords:
  - 规范
  - 标准
  - 施工
  - 查询资料
  - 知识库
  - 向量搜索
  - pinecone
  - vector search
  - 上传文档
  - markdown
  - txt
version: 1.1.0
author: deki18
license: MIT
homepage: https://github.com/deki18/pinecone-search
repository: https://github.com/deki18/pinecone-search
type: skill
environment_variables:
  required:
    - PINECONE_API_KEY
    - EMBEDDING_API_KEY
    - EMBEDDING_BASE_URL
  optional:
    - EMBEDDING_MODEL
    - INDEX_NAME
    - NAMESPACE
---

# Pinecone Search

Pinecone 向量搜索与文档上传工具,支持 TXT、Markdown 格式文件的上传、分块、向量嵌入和搜索。

## 功能特性

- 📤 **文档上传**: 支持 TXT、Markdown 文件上传
- 🧩 **智能分块**: 递归字符分割,保持语义完整
- 🔢 **向量嵌入**: OpenAI 兼容 API,批量嵌入
- 🔍 **向量搜索**: 基于 Pinecone 的相似度搜索
- 📊 **上传统计**: 详细的文件和块级别统计信息
- 🏷️ **命名空间**: 支持多项目隔离

## 安装

```bash
pip install -r requirements.txt
cp config.example.env .env
# 编辑 .env 文件,填入你的 API Key
```

## 配置

编辑 `.env` 文件:

```env
PINECONE_API_KEY=your_pinecone_api_key
EMBEDDING_API_KEY=your_embedding_api_key
EMBEDDING_BASE_URL=https://api.openai.com/v1
EMBEDDING_MODEL=text-embedding-3-large
INDEX_NAME=your-index-name
NAMESPACE=(可选,默认为default)
```

## 使用

### 上传文档

```bash
# 上传单个文件
python upload.py path/to/file.txt

# 上传多个文件
python upload.py file1.txt file2.md

# 上传整个目录
python upload.py ./docs/ --recursive

# 指定命名空间
python upload.py ./docs/ --namespace project-a

# 自定义分块大小
python upload.py ./docs/ --chunk-size 512 --overlap 100

# 预览模式(不实际上传)
python upload.py ./docs/ --dry-run

# JSON 格式输出(供 agent 使用)
python upload.py ./docs/ --json
```

### 搜索知识库

```bash
# 基础搜索
python search.py "查询内容"

# 返回更多结果
python search.py "查询内容" --top-k 10

# 按命名空间过滤
python search.py "查询" --namespace project-a

# 按文件类型过滤
python search.py "查询" --file-type markdown

# 按文件名过滤
python search.py "查询" --filename "施工规范"

# 设置相似度阈值
python search.py "查询" --min-score 0.7

# 纯向量搜索(禁用混合搜索)
python search.py "查询" --no-hybrid

# 显示详细分数
python search.py "查询" --verbose

# 组合使用
python search.py "混凝土标准" --file-type markdown --min-score 0.6 --top-k 5
```

## 触发关键词

- 规范、标准
- 查询资料、知识库
- 上传文档、添加文件、pineone

## 示例

### 上传示例

```bash
python upload.py "施工规范.md" --namespace construction
```

输出:

```
📤 正在上传文件: 施工规范.md

============================================================
📊 上传统计报告
============================================================

🏢 Workspace: workspace
📁 Namespace: construction
📄 总文件数: 1
🧩 总块数: 15
✅ 成功上传: 15
❌ 失败: 0
⏱️  耗时: 3.25 秒
⚡ 平均速度: 4.62 chunks/秒

📋 文件详情:
------------------------------------------------------------
  📄 施工规范.md
     路径: D:\docs\施工规范.md
     类型: markdown
     块数: 15
     Token数: 12580
     成功: 15

=====================================================

_meta.json

{
  "ownerId": "kn7dnvm9q3wxgz21t1t2bstq39823d1d",
  "slug": "pinecone-search",
  "version": "0.1.3",
  "publishedAt": 1775109898804
}

skill-card.md

## Description:

Pinecone vector search and document upload tool for knowledge base management.

This skill is ready for commercial/non-commercial use.

## Publisher:

[deki18](https://clawhub.ai/user/deki18)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to upload local TXT and Markdown documents into a Pinecone vector index, then search that knowledge base with semantic and keyword-assisted retrieval.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Uploaded document text and local file paths can be sent to external Pinecone and embedding services and may persist in Pinecone.

Mitigation: Use only approved Pinecone and embedding accounts, avoid broad or private directories unless authorized, and review uploaded content before indexing.

Risk: Dry-run mode may still initialize remote services or create a Pinecone index.

Mitigation: Do not rely on dry-run as non-mutating; use an isolated account or test index until the behavior is fixed.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/deki18/skills/pinecone-search)
- [Repository homepage](https://github.com/deki18/pinecone-search)

## Skill Output:

**Output Type(s):** [text, JSON, shell commands, configuration]

**Output Format:** [Command-line text output and optional JSON upload statistics]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Search output includes matched document metadata and snippets; upload output can include file, chunk, success, failure, token, namespace, and duration statistics.]

## Skill Version(s):

0.1.3 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

requirements.txt

openai>=1.0.0
pinecone>=5.0.0
python-dotenv>=1.0.0
tiktoken>=0.5.0
pydantic>=2.0.0
pydantic-settings>=2.0.0
chardet>=5.0.0

Sponsored

Ads related to Pinecone Search and adjacent AI workflows.