agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/pinecone/SKILL.md

pinecone

Skill13 starsChanged 26 days agoMITView on GitHub

  • Installs packages

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not rely entirely on vector similarity if exact categorical constraints exist.

    line 18
  2. Distinctive:

    If similarity search returns irrelevant results, verify that the embedding model used for the query is exactly the same model used during …

    line 33
  3. Distinctive:

    Use this when your agent works with pinecone — structured patterns beat pasted docs and prevent common hallucinations.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pinecone API Skill

Quick Start

Pinecone stores vector embeddings for fast similarity search, serving as the memory layer for RAG (Retrieval-Augmented Generation) applications.

npm install @pinecone-database/pinecone

Common Workflows

RAG (Retrieval-Augmented Generation)

  1. Convert a user query to a vector embedding (e.g., using OpenAI text-embedding-3-small).
  2. Query Pinecone for the top 5 most similar vectors.
  3. Inject the retrieved metadata text into the LLM system prompt.

Production Patterns

Metadata Filtering

Do not rely entirely on vector similarity if exact categorical constraints exist. Attach metadata (e.g., tenant_id, document_type) to your vectors and use Pinecone's filter syntax to restrict the search space before calculating cosine similarity.

Error Recovery

Handle rate limits (HTTP 429) and index initialization delays. Serverless indexes scale automatically but may temporarily reject massive, sudden bursts of write operations. Use backoff retries for upserts.

Security Notes

Pinecone Serverless environments do not support VPC peering. Ensure data is encrypted at rest and secure your API keys tightly. Segment tenant data utilizing namespaces or strict metadata filters.

Performance Considerations

Vector search latency scales with dimensionality and index size. Batch your upsert operations in chunks of 100-500 vectors. Query latency is typically <50ms; if slower, ensure you are querying the correct geographic region.

Testing Guidance

Mock the Pinecone client in unit tests. For integration tests, utilize an isolated namespace (e.g., test_run_123) to prevent test data from contaminating the primary index, and delete the namespace post-test.

Troubleshooting

If similarity search returns irrelevant results, verify that the embedding model used for the query is exactly the same model used during the upsert phase. Mismatched dimensions or models will produce garbage results.

References

Related Skills

  • OpenAI
  • Anthropic
  • Upstash

Why use this skill

Use this when your agent works with pinecone — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • openai — related to
  • anthropic — related to
  • upstash — related to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.