pinecone-query

作者: pinecone-io

使用Pinecone MCP通过文本查询集成索引。重要提示 - 此技能仅适用于集成索引(内置Pinecone嵌入的索引…

npx skills add https://github.com/pinecone-io/skills --skill pinecone-query

Pinecone Query Skill

Search for records in Pinecone integrated indexes using natural language text queries via the Pinecone MCP server.

<<clarify_style>>

What is this skill for?

This skill provides a simple way to query integrated indexes (indexes with built-in Pinecone embedding models) using text queries. The MCP server automatically converts your text into embeddings and searches the index.

Prerequisites

Required:

  1. Pinecone MCP server must be configured - Check if MCP tools are available
  2. PINECONE_API_KEY environment variable must be set - Get a free API key at https://app.pinecone.io/?sessionType=signup
  3. Index must be an integrated index - Uses Pinecone embedding models (e.g., multilingual-e5-large, llama-text-embed-v2, pinecone-sparse-english-v0)

When NOT to use this skill

Use the pinecone-cli skill instead if:

  • ❌ Your index is a standard index (no integrated embedding model)
  • ❌ You need to query with custom vector values (not text)
  • ❌ You need advanced vector operations (fetch by ID, list vectors, bulk operations)
  • ❌ Your index uses third-party embedding models (OpenAI, HuggingFace, Cohere)

MCP Limitation: The Pinecone MCP currently only supports integrated indexes. For all other use cases, use the pinecone-cli skill.

How it works

Utilize Pinecone MCP's search-records tool to search for records within a specified Pinecone integrated index using a text query.

Workflow

IMPORTANT: Before proceeding, verify the Pinecone MCP tools are available. If MCP tools are not accessible:

  • Inform the user that the Pinecone MCP server needs to be configured
  • Check if PINECONE_API_KEY environment variable is set
  • Direct them to the MCP setup documentation or the pinecone-help skill
  1. Parse the user's input for:

    • query (required): The text to search for.
    • index (required): The name of the Pinecone index to search.
    • namespace (optional): The namespace within the index.
    • reranker (optional): The reranking model to use for improved relevance.
  2. If the user omits required arguments:

    • If only the index name is provided, use the describe-index tool to retrieve available namespaces and ask the user to choose.
    • If only a query is provided, use list-indexes to get available indexes, ask the user to pick one, then use describe-index for namespaces if needed.
  3. Call the search-records tool with the gathered arguments to perform the search.

  4. Format and display the returned results in a clear, readable table including field highlights (such as ID, score, and relevant metadata).


Troubleshooting

PINECONE_API_KEY is required. Get a free key at https://app.pinecone.io/?sessionType=signup

If you get an access error, the key is likely missing. Ask the user to set it and restart their IDE or agent session: <<api_key_setup>>

IMPORTANT At the moment, the pinecone-query skill can only be used with integrated indexes, which use hosted Pinecone embedding models to embed and search for data. If a user attempts to query an index that uses a third party API model such as OpenAI, or HuggingFace embedding models, remind them that this capability is not available yet with the Pinecone MCP server.

  • If required arguments are missing, prompt the user to supply them, using Pinecone MCP tools as needed (e.g., list-indexes, describe-index).
  • Guide the user interactively through argument selection until the search can be completed.
  • If an invalid value is provided for any argument (e.g., nonexistent index or namespace), surface the error and suggest valid options.

Tools Reference

  • search-records: Search records in a given index with optional metadata filtering and reranking.
  • list-indexes: List all available Pinecone indexes.
  • describe-index: Get index configuration and namespaces.
  • describe-index-stats: Get stats including record counts and namespaces.
  • rerank-documents: Rerank returned documents using a specified reranking model.
  • Ask the user interactively to clarify missing information when needed.

来自 pinecone-io 的更多技能

workdir-smoke
pinecone-io
仅用于冒烟测试评估框架工作目录捕获机制的占位技能。非真实技能——待真实代码生成技能创建后删除。
official
cultivar
pinecone-io
驱动 cultivar CLI 测试代理技能是否改善行为——搭建任务,在 Claude/Copilot/Gemini(本地或……)上分别运行带技能和不带技能的版本
official
pinecone:assistant
pinecone-io
创建、管理并与Pinecone助手进行对话,实现带引用的文档问答。处理所有助手操作——创建、上传、同步、对话、上下文……
official
pinecone:cli
pinecone-io
使用 Pinecone CLI(pc)从终端管理 Pinecone 资源的指南。该 CLI 支持所有索引类型(标准、集成、稀疏)以及所有…
official
pinecone:docs
pinecone-io
为使用Pinecone进行开发的开发者提供的精选文档参考。包含按主题组织的官方文档链接及数据格式参考。适用于……
official
pinecone:full-text-search
pinecone-io
使用预览API(2026-01.alpha,公开预览版)创建、导入数据并查询Pinecone全文搜索(FTS)索引。当用户或代理要求…时使用。
official
pinecone:help
pinecone-io
所有可用Pinecone技能的概览以及用户入门所需的内容。当用户询问有哪些可用技能、如何开始使用……时调用。
official
pinecone:mcp
pinecone-io
Pinecone MCP服务器工具的参考文档。记录了所有可用工具——列出索引、描述索引、描述索引统计、为模型创建索引……
official