Skip to content
Open
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
124 changes: 93 additions & 31 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@pinecone-database/pinecone": "^8.2.0",
"@xenova/transformers": "2.0.1",
"@xenova/transformers": "2.17.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Embeddings lose default pooling

High Severity

Upgrading @xenova/transformers from 2.0.1 to 2.17.2 changes the default embeddings/feature-extraction output from a pooled 384-d vector to per-token hidden states. embed() still calls the pipeline with no pooling or normalize options and flattens result.data, so upserts and queries send vectors whose length is sequence_length * 384 instead of 384, which will fail against the 384-dimension Pinecone index.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 28bd36a. Configure here.

"cli-progress": "^3.12.0",
"dotenv": "^16.0.3",
"onnxruntime-node": "^1.14.0",
Expand Down
Loading