
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@mastra/pinecone
Advanced tools
Affected versions:
Vector store implementation for Pinecone, using the official @pinecone-database/pinecone SDK with added telemetry support.
pnpm add @mastra/pinecone
import { PineconeVector } from '@mastra/pinecone';
const vectorStore = new PineconeVector({
id: 'my-pinecone',
apiKey: 'your-api-key',
});
// Create a new index
await vectorStore.createIndex({ indexName: 'my-index', dimension: 1536, metric: 'cosine' });
// Add vectors
const vectors = [[0.1, 0.2, ...], [0.3, 0.4, ...]];
const metadata = [{ text: 'doc1' }, { text: 'doc2' }];
const ids = await vectorStore.upsert({ indexName: 'my-index', vectors, metadata });
// Query vectors
const results = await vectorStore.query({
indexName: 'my-index',
queryVector: [0.1, 0.2, ...],
topK: 10,
filter: { text: { $eq: 'doc1' } },
includeVector: false,
});
Required:
id: Unique identifier for this vector store instanceapiKey: Your Pinecone API keyOptional:
controllerHostUrl: Custom Pinecone controller host URLcloud: Cloud provider for new index creation ('aws' | 'gcp' | 'azure', default: 'aws')region: Region for new index creation (default: 'us-east-1')createIndex({indexName, dimension, metric?}): Create a new indexupsert({indexName, vectors, metadata?, ids?}): Add or update vectorsquery({indexName, queryVector, topK?, filter?, includeVector?}): Search for similar vectorsupdateVector({ indexName, id?, filter?, namespace?, update }): Update a single vector by ID or metadata filterdeleteVector({ indexName, id }): Delete a single vector by IDdeleteVectors({ indexName, ids?, filter?, namespace? }): Delete multiple vectors by IDs or metadata filterlistIndexes(): List all indexesdescribeIndex(indexName): Get index statisticsdeleteIndex(indexName): Delete an indexFAQs
Pinecone vector store provider for Mastra
The npm package @mastra/pinecone receives a total of 6,457 weekly downloads. As such, @mastra/pinecone popularity was classified as popular.
We found that @mastra/pinecone demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.