pinecone
Manage Pinecone vector database — indexes, upsert vectors, query, and delete via the REST API.
来源信息
- 仓库
- ThinkfleetAI/thinkfleet-engine
- 最近来源活动
- 2026年2月1日 16:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- Forks
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- pinecone
- description
- Manage Pinecone vector database — indexes, upsert vectors, query, and delete via the REST API.
- metadata
- {"thinkfleetbot":{"emoji":"🌲","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Pinecone
Manage vector indexes, upsert and query vectors.
## Environment Variables
- `PINECONE_API_KEY` - API key
- `PINECONE_INDEX_URL` - Index URL (e.g. `https://my-index-abc123.svc.pinecone.io`)
## List indexes
```bash
curl -s -H "Api-Key: $PINECONE_API_KEY" \
"https://api.pinecone.io/indexes" | jq '.indexes[] | {name, dimension, metric, status: .status.state}'
```
## Query vectors
```bash
curl -s -X POST -H "Api-Key: $PINECONE_API_KEY" \
-H "Content-Type: application/json" \
"$PINECONE_INDEX_URL/query" \
-d '{"vector":[0.1,0.2,0.3],"topK":5,"includeMetadata":true}' | jq '.matches[] | {id, score, metadata}'
```
## Upsert vectors
```bash
curl -s -X POST -H "Api-Key: $PINECONE_API_KEY" \
-H "Content-Type: application/json" \
"$PINECONE_INDEX_URL/vectors/upsert" \
-d '{"vectors":[{"id":"vec1","values":[0.1,0.2,0.3],"metadata":{"text":"example"}}]}' | jq '{upsertedCount}'
```
## Describe index stats
```bash
curl -s -X POST -H "Api-Key: $PINECONE_API_KEY" \
"$PINECONE_INDEX_URL/describe_index_stats" | jq '{dimension, totalVectorCount}'
```
## Delete vectors
```bash
curl -s -X POST -H "Api-Key: $PINECONE_API_KEY" \
-H "Content-Type: application/json" \
"$PINECONE_INDEX_URL/vectors/delete" \
-d '{"ids":["vec1","vec2"]}' | jq '.'
```
## Notes
- Always confirm before upserting or deleting vectors.
在 GitHub 查看