[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFV1DS52QZC7VCGQ3Y9DWV":3,"skill-same:01M6EFV1DS52QZC7VCGQ3Y9DWV":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFV1DS52QZC7VCGQ3Y9DWV","pinecone",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fpinecone\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Pinecone\n\nPinecone is a fully managed vector database that makes it easy to store, index, and query high-dimensional vectors for similarity search, recommendation systems, and RAG (Retrieval-Augmented Generation).\n\n## Installation\n\n```bash\n# Node.js client\nnpm install @pinecone-database\u002Fpinecone\n\n# Python client\npip install pinecone-client\n```\n\n## Create an Index\n\n```javascript\n\u002F\u002F create-index.js: Initialize Pinecone and create a serverless index\nconst { Pinecone } = require('@pinecone-database\u002Fpinecone');\n\nconst pc = new Pinecone({ apiKey: process.env.PINECONE_API_KEY });\n\nasync function createIndex() {\n  await pc.createIndex({\n    name: 'knowledge-base',\n    dimension: 1536, \u002F\u002F OpenAI text-embedding-3-small\n    metric: 'cosine',\n    spec: {\n      serverless: {\n        cloud: 'aws',\n        region: 'us-east-1',\n      },\n    },\n  });\n}\n\ncreateIndex().catch(console.error);\n```\n\n## Upsert Vectors\n\n```javascript\n\u002F\u002F upsert.js: Store embeddings with metadata in Pinecone\nconst index = pc.index('knowledge-base');\n\n\u002F\u002F Upsert vectors with metadata\nawait index.namespace('articles').upsert([\n  {\n    id: 'article-1',\n    values: embedding1, \u002F\u002F Float32Array of dimension 1536\n    metadata: {\n      title: 'Introduction to Vector Databases',\n      source: 'blog',\n      category: 'technology',\n      published: '2026-01-15',\n    },\n  },\n  {\n    id: 'article-2',\n    values: embedding2,\n    metadata: {\n      title: 'Building RAG Applications',\n      source: 'docs',\n      category: 'ai',\n      published: '2026-02-01',\n    },\n  },\n]);\n```\n\n## Query Vectors\n\n```javascript\n\u002F\u002F query.js: Find similar vectors with metadata filtering\nconst index = pc.index('knowledge-base');\n\n\u002F\u002F Simple similarity search\nconst results = await index.namespace('articles').query({\n  vector: queryEmbedding,\n  topK: 5,\n  includeMetadata: true,\n  includeValues: false,\n});\n\nresults.matches.forEach(match => {\n  console.log(`${match.id}: ${match.score} — ${match.metadata.title}`);\n});\n\n\u002F\u002F Query with metadata filter\nconst filtered = await index.namespace('articles').query({\n  vector: queryEmbedding,\n  topK: 10,\n  filter: {\n    category: { $eq: 'technology' },\n    published: { $gte: '2026-01-01' },\n  },\n  includeMetadata: true,\n});\n```\n\n## Python Client\n\n```python\n# app.py: Pinecone with Python client\nfrom pinecone import Pinecone\nimport os\n\npc = Pinecone(api_key=os.environ['PINECONE_API_KEY'])\nindex = pc.Index('knowledge-base')\n\n# Upsert\nindex.upsert(\n    vectors=[\n        {'id': 'doc-1', 'values': embedding, 'metadata': {'title': 'Hello'}},\n    ],\n    namespace='articles',\n)\n\n# Query\nresults = index.query(\n    namespace='articles',\n    vector=query_embedding,\n    top_k=5,\n    include_metadata=True,\n    filter={'category': {'$eq': 'technology'}},\n)\n\nfor match in results['matches']:\n    print(f\"{match['id']}: {match['score']:.3f} — {match['metadata']['title']}\")\n\n# List and delete\nindex.delete(ids=['doc-1'], namespace='articles')\nindex.delete(delete_all=True, namespace='old-data')\n```\n\n## RAG Pipeline Example\n\n```javascript\n\u002F\u002F rag.js: Retrieval-Augmented Generation with Pinecone + OpenAI\nconst { OpenAI } = require('openai');\nconst { Pinecone } = require('@pinecone-database\u002Fpinecone');\n\nconst openai = new OpenAI();\nconst pc = new Pinecone({ apiKey: process.env.PINECONE_API_KEY });\nconst index = pc.index('knowledge-base');\n\nasync function askQuestion(question) {\n  \u002F\u002F 1. Generate embedding for the question\n  const embeddingRes = await openai.embeddings.create({\n    model: 'text-embedding-3-small',\n    input: question,\n  });\n  const queryVector = embeddingRes.data[0].embedding;\n\n  \u002F\u002F 2. Find relevant documents\n  const searchResults = await index.namespace('articles').query({\n    vector: queryVector,\n    topK: 5,\n    includeMetadata: true,\n  });\n\n  const context = searchResults.matches\n    .map(m => m.metadata.content)\n    .join('\\n\\n');\n\n  \u002F\u002F 3. Generate answer with context\n  const completion = await openai.chat.completions.create({\n    model: 'gpt-4o',\n    messages: [\n      { role: 'system', content: `Answer based on this context:\\n\\n${context}` },\n      { role: 'user', content: question },\n    ],\n  });\n\n  return completion.choices[0].message.content;\n}\n```\n\n## Index Management\n\n```javascript\n\u002F\u002F manage.js: List, describe, and manage Pinecone indexes\n\u002F\u002F List all indexes\nconst indexes = await pc.listIndexes();\nconsole.log(indexes);\n\n\u002F\u002F Describe index stats\nconst stats = await index.describeIndexStats();\nconsole.log(stats); \u002F\u002F { dimension, totalRecordCount, namespaces: {...} }\n\n\u002F\u002F Delete a namespace\nawait index.namespace('old-data').deleteAll();\n\n\u002F\u002F Delete the entire index\nawait pc.deleteIndex('knowledge-base');\n```\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fpinecone",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill pinecone",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill pinecone",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill pinecone","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fpinecone\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]