/pinecone:quickstartfrom pinecone
Interactive Pinecone quickstart for new developers. Choose between Database path (create a document index with integrated embedding, upsert sample documents, and search by meaning and exact terms) or Assistant path (create a Pinecone Assistant for document Q&A).
Ships in pinecone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Welcome! This skill walks you through your first Pinecone experience using the tools available to you. In this quickstart, you will either search example data by meaning and by exact terms, or ask questions about your documents with Pinecone Assistant.
Whenever this skill asks the user to choose between options, confirm a destructive step, or pick from a list, use the AskUserQuestion tool rather than plain prose. Fall back to prose only if the tool is unavailable.
Before starting either path, verify the API key works by calling list-indexes via the Pinecone MCP. If it succeeds, proceed. If it fails with an auth error, ask the user to set their key:
export PINECONE_API_KEY="your-key" in your terminal. Claude Code reads
your shell environment, so this is enough..env file instead, run scripts with uv run --env-file .env scripts/....Then retry list-indexes to confirm.
If the MCP isn't available, skip this check. The bundled scripts check for the key themselves and fail fast without it.
Ask the user which path they want:
This path builds the same index as the docs quickstart: a document index whose one text field supports search by meaning and by exact terms. Pinecone embeds the text for you, so you send plain text, never vectors.
Prefer the Pinecone MCP tools create-document-index, upsert-documents, and search-document-index. Use them when they're available.
Fall back to the bundled scripts, which do the same thing with uv, when:
create-index-for-model, upsert-records, and search-records, which build a different kind of index, so never use those here)Once you fall back, use the scripts for the rest of this path. If you're using a .env file, add --env-file .env after uv run in each script command.
For each step, explain to the user what will happen. An overview is here:
With the MCP, call create-document-index:
name: quickstart
fields:
chunk_text:
fullTextSearch: {language: en}
embed: {}
The tool waits until the index is ready. If an index named quickstart already exists, the tool returns it instead of creating one. Check its schema: if chunk_text has both fullTextSearch and embed, reuse it. Otherwise, ask the user for another name and use it in every step.
With the scripts:
uv run scripts/create_index.py
The script creates quickstart, waits until it's ready, and reuses an existing quickstart index with the same schema. If one exists with a different schema, the script stops: ask the user for another name and pass --index <name> to every script.
Explain to the user what's happening:
chunk_text, declared as {"type": "string", "full_text_search": {"language": "en"}, "embed": {}}full_text_search indexes the text for exact-term (BM25) search, and embed has Pinecone embed it for search by meaning, so one field supports bothembed config uses the default model, llama-text-embed-v2, at 1,024 dimensionschunk_text field in the default index the Pinecone console createsWith the MCP, call upsert-documents with name: quickstart (the namespace defaults to __default__) and these documents:
[
{"_id": "1", "chunk_text": "Refund requests must be submitted within 30 days of purchase.", "category": "policy"},
{"_id": "2", "chunk_text": "Enterprise customers get support with a 4-hour response time.", "category": "policy"},
{"_id": "3", "chunk_text": "Error E1042: the connection timed out after 30 seconds. Retry with a longer timeout.", "category": "log"},
{"_id": "4", "chunk_text": "To reset your password, open Settings and choose Security.", "category": "support"},
{"_id": "5", "chunk_text": "Order 88231 shipped on 2026-08-20 via express courier.", "category": "order"}
]
Then wait about 10 seconds before searching (for example, run sleep 10), because a new index takes a few seconds to make its first documents searchable.
With the scripts:
uv run scripts/upsert.py
The script upserts the same 5 documents into the __default__ namespace, then waits until they're searchable.
Explain to the user what's happening:
Error E1042), a password reset, and an order (88231)_id, plain text on chunk_text, and a category fieldchunk_text on write. Fields outside the schema, like category, are stored as metadata you can filter onWith the MCP, call search-document-index:
name: quickstart
scoreBy: [{type: embed, fields: [chunk_text], query: "how do I get my money back?"}]
filter: {category: {$eq: policy}}
topK: 3
includeFields: [chunk_text]
With the scripts:
uv run scripts/search.py --mode meaning --query "how do I get my money back?" --category policy
Display the results in a clean table: ID, score, and chunk_text. Only the two policy documents are searched, and document 1, the refund policy, should rank first. If the search returns no matches, wait a few seconds and run it again.
Explain to the user what's happening:
embed: Pinecone embeds the query with the same model it used for the documents and ranks them by semantic similaritycategory metadata is policyWith the MCP, call search-document-index:
name: quickstart
scoreBy: [{type: text, fields: [chunk_text], query: "E1042"}]
topK: 3
includeFields: [chunk_text]
With the scripts:
uv run scripts/search.py --mode terms --query "E1042"
Display the results the same way. Only document 3, the one that contains E1042, should match.
Explain to the user what's happening:
text: it ranks the same field by BM25 keyword relevance, so an exact identifier like an error code surfaces the document that contains itcategory filter in Step 3Always present these as two separate searches. Don't describe them as combined, fused, or hybrid search.
Offer to explore further: Ask the user if they'd like to try another query. Run each the same way as Step 3 (meaning: embed, or --mode meaning) or Step 4 (exact terms: text, or --mode terms), without a filter:
4) first5)Run whichever query they choose and display the results the same way. The user can also try their own queries in either mode. After each result, point out why those documents surfaced.
Ask the user if they want to search their own files. If not, skip to Step 6.
If yes, ask for the path to a file or folder. Use the script for this step even when the MCP is available: it reads, chunks, and batches the files locally, instead of passing every chunk through a tool call. It reads .md and .txt files directly, and skips hidden folders, dependency folders like node_modules, and files that aren't UTF-8 text:
uv run scripts/upsert.py --source ./your-docs
For other formats (PDF, DOCX, HTML, and so on), extract the text to .md or .txt files first using a parser of the user's choice, then pass those files to --source.
Explain to the user what's happening:
handbook.md#0, handbook.md#1, ...), so all of a file's chunks can be fetched, replaced, or deleted together laterembed field accepts at most 96 documents per upsert, so the script sends the chunks in batches of 96embed field. For a large dataset in Python, documents.batch_upsert sends batches in parallel, retries temporary errors, and reports any batch that still failsThen ask the user for a question about their files and run it by meaning or by exact terms, the same way as Steps 3 and 4. The sample documents stay in the index, so they can show up in results too.
Congratulate the user on completing the quickstart. Ask if they'd like a standalone Python script that does everything in one go: create the index, upsert the sample documents, and run both searches.
If yes, copy it to their working directory:
cp scripts/quickstart_complete.py ./pinecone_quickstart.py
Tell the user:
./pinecone_quickstart.pyuv run pinecone_quickstart.pyuv inline dependencies, so no separate install is neededpinecone Python SDK 10.1.0 or later, which integrated embedding on a document index needsFor query syntax, phrase matching, and text-match filters, point them to pinecone:full-text-search.
Guide the user through the Pinecone Assistant workflow using the existing pinecone:assistant skill:
Before anything else, ask the user if they have files to upload. Pinecone Assistant accepts .pdf, .md, .txt, and .docx files — a single file or a folder of files both work.
If they have files: ask for the path and proceed to Step 2.
If they don't have files: offer two options:
./sample-docs/ so they can complete the quickstart right now. Ask what topics they'd like (or default to: a product FAQ, a short how-to guide, and a brief company overview). Write 3 files, each 150–250 words.Invoke pinecone:assistant or run (add --env-file .env if using a .env file):
uv run ../assistant/scripts/create.py --name my-assistant
Explain: The assistant is a fully managed RAG service — upload documents, ask questions, get cited answers.
Invoke pinecone:assistant or run (add --env-file .env if using a .env file):
uv run ../assistant/scripts/upload.py --assistant my-assistant --source ./your-docs
Explain: Pinecone handles chunking, embedding, and indexing automatically — no configuration needed.
Invoke pinecone:assistant or run (add --env-file .env if using a .env file):
uv run ../assistant/scripts/chat.py --assistant my-assistant --message "What are the main topics in these documents?"
Explain: Responses include citations with source file and page number.
pinecone:assistant to keep the assistant up to date as documents changePINECONE_API_KEY not set
export PINECONE_API_KEY="your-key" in your terminal. Claude Code reads
your shell environment, so this is enough..env file instead, run scripts with uv run --env-file .env scripts/....Restart your IDE or agent session after setting the key.
MCP tools not available
create-document-index tool, it's an older version of the server. Restart your IDE or agent session so it starts the latest versionPINECONE_API_KEY is set before the MCP server startsIndex already exists
quickstart index with the quickstart schema is reused, and upserting again is safe: it overwrites documents with the same IDsquickstart exists with a different schema, use another index name in every step, or delete it with pc index delete -n quickstart via the CLISearch returns no matches right after upserting
uv not installed
See the uv installation guide.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/assistantpinecone:assistantCreate, manage, and chat with Pinecone Assistants for document Q&A with citations. Handles all assistant operations - create, upload, sync, chat, context retrieval, and list. Recognizes natural language like "create an assistant from my docs", "ask my assistant about X", or "upload my docs to Pinecone"./clipinecone:cliGuide for using the Pinecone CLI (pc) to manage Pinecone resources from the terminal. The CLI supports ALL index types (standard, integrated, sparse) and all vector operations — unlike the MCP which only supports integrated indexes. Use for batch operations, vector management, backups, namespaces, CI/CD automation, and full control over Pinecone resources./npx claudepluginhub pinecone-io/pinecone-claude-code-plugin --plugin pineconeOther plugins' skills for the same job