From 5ef720418206fe2b80a03ecc0a4dba6844bd273a Mon Sep 17 00:00:00 2001 From: Mikael Brevik Date: Fri, 16 Aug 2024 13:32:07 +0200 Subject: [PATCH] chore: updates pinecone (#342) --- package.json | 2 +- search-index/generate-embeddings.mjs | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3541d707..6a471056 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "license": "MIT, CC BY-SA 4.0", "description": "Variant's handbook-v2", "devDependencies": { - "@pinecone-database/pinecone": "^2.2.0", + "@pinecone-database/pinecone": "^3.0.0", "@types/mdx": "^2.0.13", "@types/node": "^20.12.7", "@types/qs": "^6.9.15", diff --git a/search-index/generate-embeddings.mjs b/search-index/generate-embeddings.mjs index 6a4fe68b..91fdf2f6 100644 --- a/search-index/generate-embeddings.mjs +++ b/search-index/generate-embeddings.mjs @@ -28,7 +28,7 @@ export async function generateEmbeddings(index) { const pinecone = new Pinecone({ apiKey: pineconeApiKey }); - const indexName = 'handbook-index'; + const indexName = 'handbook-index-1718677251'; const indexVectorNamespace = 'handbook-namespace'; const pineconeIndex = pinecone diff --git a/yarn.lock b/yarn.lock index bad20f7c..20cf2e3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -405,10 +405,10 @@ resolved "https://registry.yarnpkg.com/@panva/hkdf/-/hkdf-1.0.4.tgz#4e02bb248402ff6c5c024e23a68438e2b0e69d67" integrity sha512-003xWiCuvePbLaPHT+CRuaV4GlyCAVm6XYSbBZDHoWZGn1mNkVKFaDbGJjjxmEFvizUwlCoM6O18FCBMMky2zQ== -"@pinecone-database/pinecone@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@pinecone-database/pinecone/-/pinecone-2.2.0.tgz#f895741756fc66c8b4e0c46eccbd806614879766" - integrity sha512-qfVs9n5YyTmerIV1GE1u89xF1W3oFSF53STW68Oqyxey0dGq4775cCw8G5pnwoy872uqfh+tMRDME9bcWfinUw== +"@pinecone-database/pinecone@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@pinecone-database/pinecone/-/pinecone-3.0.0.tgz#972bf81dcd123b58aa70dbc506e9131ecc832b1a" + integrity sha512-ppBRr9MZRW8U2eww3QU1s5oTa0sXbaHrRJRS8x1++WVUPclcb6T6me/5sv9cLZDvldvsZY26k3fnrEoXLNnPUQ== dependencies: "@sinclair/typebox" "^0.29.0" ajv "^8.12.0"