Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move @mastra/vector-pinecone to @mastra/pinecone #1781

Merged
merged 9 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-combined-stores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
run: pnpm test:combined-stores
env:
NODE_OPTIONS: "--max_old_space_size=8096"
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
ASTRA_DB_ENDPOINT: ${{ secrets.ASTRA_DB_ENDPOINT }}
ASTRA_DB_TOKEN: ${{ secrets.ASTRA_DB_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.ABHI_CLOUDFLARE_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/rag/vector-databases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Best for teams already using PostgreSQL who want to minimize infrastructure comp
</Tabs.Tab>
<Tabs.Tab>
```ts filename="vector-store.ts" showLineNumbers copy
import { PineconeVector } from '@mastra/vector-pinecone'
import { PineconeVector } from '@mastra/pinecone'

const store = new PineconeVector(process.env.PINECONE_API_KEY)
await store.createIndex("my-collection", 1536);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GithubLink } from '../../../components/github-link';
After generating embeddings, you need to store them in a vector database for similarity search. The `PineconeVector` class provides methods to create indexes and insert embeddings into Pinecone, a managed vector database service. This example shows how to store embeddings in Pinecone for later retrieval.

```tsx copy
import { PineconeVector } from '@mastra/vector-pinecone';
import { PineconeVector } from '@mastra/pinecone';
import { MDocument, embed } from '@mastra/rag';

const doc = MDocument.fromText('Your text content...');
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/rag/insert-embedding-in-pinecone/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MDocument, embedMany } from '@mastra/rag';
import { PineconeVector } from '@mastra/vector-pinecone';
import { PineconeVector } from '@mastra/pinecone';

const doc = MDocument.fromText('Your text content...');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@mastra/rag": "workspace:*",
"@mastra/vector-pinecone": "workspace:*"
"@mastra/pinecone": "workspace:*"
},
"version": "0.0.1-alpha.4"
}
2 changes: 1 addition & 1 deletion examples/basics/rag/retrieve-results/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MDocument, embedMany } from '@mastra/rag';
import { PineconeVector } from '@mastra/vector-pinecone';
import { PineconeVector } from '@mastra/pinecone';

const doc = MDocument.fromText('Your text content...');

Expand Down
2 changes: 1 addition & 1 deletion examples/basics/rag/retrieve-results/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@mastra/rag": "workspace:*",
"@mastra/vector-pinecone": "workspace:*"
"@mastra/pinecone": "workspace:*"
},
"version": "0.0.1-alpha.4"
}
37 changes: 28 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions stores/pinecone/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
247 changes: 247 additions & 0 deletions stores/pinecone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
# @mastra/pinecone

## 0.1.0-alpha.1

### Major Changes

- Package renamed from @mastra/vector-pinecone to @mastra/pinecone
- Moved package to stores/ directory for better organization
- All functionality remains the same

### Migration

To migrate from @mastra/vector-pinecone:
1. Remove @mastra/vector-pinecone from dependencies
2. Install @mastra/pinecone
3. Update imports from '@mastra/vector-pinecone' to '@mastra/pinecone'

### Previous History

This package was previously published as @mastra/vector-pinecone. Key changes from that history:

- Added Unified Filter API support for improved query filtering
- Updated operator validation and handling
- Implemented new filtering for vectorQueryTool
- Added comprehensive testing for Pinecone Unified Filter API
- Added automatic batching for large upserts
- Various dependency updates and bug fixes

## 0.1.0-alpha.27

### Patch Changes

- Updated dependencies [4d4f6b6]
- @mastra/[email protected]

## 0.1.0-alpha.26

### Patch Changes

- a10b7a3: Implemented new filtering for vectorQueryTool and updated docs
- Updated dependencies [d7d465a]
- Updated dependencies [d7d465a]
- Updated dependencies [2017553]
- Updated dependencies [a10b7a3]
- Updated dependencies [16e5b04]
- @mastra/[email protected]

## 0.1.0-alpha.25

### Patch Changes

- Updated dependencies [8151f44]
- Updated dependencies [e897f1c]
- Updated dependencies [3700be1]
- @mastra/[email protected]

## 0.1.0-alpha.24

### Patch Changes

- Updated dependencies [27275c9]
- @mastra/[email protected]

## 0.1.0-alpha.23

### Patch Changes

- ccbc581: Updated operator validation and handling for all vector stores
- Updated dependencies [ccbc581]
- @mastra/[email protected]

## 0.1.0-alpha.22

### Patch Changes

- Updated dependencies [7365b6c]
- @mastra/[email protected]

## 0.1.0-alpha.21

### Minor Changes

- 5916f9d: Update deps from fixed to ^

### Patch Changes

- 7f24c29: Add Chroma Filter translator and updated vector store tests
- Updated dependencies [6fa4bd2]
- Updated dependencies [e2e76de]
- Updated dependencies [7f24c29]
- Updated dependencies [67637ba]
- Updated dependencies [04f3171]
- @mastra/[email protected]

## 0.0.1-alpha.20

### Patch Changes

- Updated dependencies [e9d1b47]
- @mastra/[email protected]

## 0.0.1-alpha.19

### Patch Changes

- Updated dependencies [2f17a5f]
- Updated dependencies [cb290ee]
- Updated dependencies [b4d7416]
- Updated dependencies [38b7f66]
- @mastra/[email protected]

## 0.0.1-alpha.18

### Patch Changes

- cf4c02c: Added testing for Pinecone Unified Filter API

## 0.0.1-alpha.17

### Patch Changes

- 78eec7c: Started implementation on Unified Filter API for several vector stores.
- 9625602: Use mastra core splitted bundles in other packages
- Updated dependencies [30322ce]
- Updated dependencies [78eec7c]
- Updated dependencies [9625602]
- Updated dependencies [8769a62]
- @mastra/[email protected]

## 0.0.1-alpha.16

### Patch Changes

- Updated dependencies [73d112c]
- @mastra/[email protected]

## 0.0.1-alpha.15

### Patch Changes

- Updated dependencies [9fb3039]
- @mastra/[email protected]

## 0.0.1-alpha.14

### Patch Changes

- b422ed3: Bundle vector provider packages with tsup

## 0.0.1-alpha.13

### Patch Changes

- Updated dependencies [327ece7]
- @mastra/[email protected]

## 0.0.1-alpha.12

### Patch Changes

- Updated dependencies [21fe536]
- @mastra/[email protected]

## 0.0.1-alpha.11

### Patch Changes

- Updated dependencies [685108a]
- Updated dependencies [685108a]
- @mastra/[email protected]

## 0.0.1-alpha.10

### Patch Changes

- Updated dependencies [8105fae]
- @mastra/[email protected]

## 0.0.1-alpha.9

### Patch Changes

- 7a469e7: Bump vectors

## 0.0.1-alpha.8

### Patch Changes

- Updated dependencies [ae7bf94]
- Updated dependencies [ae7bf94]
- @mastra/[email protected]

## 0.0.1-alpha.7

### Patch Changes

- Updated dependencies [23dcb23]
- @mastra/[email protected]

## 0.0.1-alpha.6

### Patch Changes

- Updated dependencies [7b87567]
- @mastra/[email protected]

## 0.0.1-alpha.5

### Patch Changes

- Updated dependencies [3427b95]
- @mastra/[email protected]

## 0.0.1-alpha.4

### Patch Changes

- Updated dependencies [e4d4ede]
- Updated dependencies [06b2c0a]
- @mastra/[email protected]

## 0.0.1-alpha.3

### Patch Changes

- Updated dependencies [d9c8dd0]
- @mastra/[email protected]

## 0.0.1-alpha.2

### Patch Changes

- bdaf834: publish packages

## 0.0.1-alpha.1

### Patch Changes

- Updated dependencies [dd6d87f]
- Updated dependencies [04434b6]
- @mastra/[email protected]

## 0.0.1-alpha.0

### Patch Changes

- 0d5a03d: Vector store modules
Loading