Alex Jukes
Alex Jukes
WWasp-lang
Created by Alex Jukes on 8/28/2024 in #đŸ™‹questions
Embeddings template needs pinecone update
Similar to https://github.com/wasp-lang/wasp/issues/1725, but now pinecone has released v3 which removes the need for an environment when setting up the API. This makes the tutorial a bit confusing as the example .env file includes PINECON_ENV of which there is now no reference on the Pinecone site. Recommend upgrading to Pinecone ^3.0.2, removing reference to PINECONE_ENV and adding a spec property in the generateEmbeddings.ts file as per pinecone docs
await pinecone.createIndex({
// add this
spec: {
serverless: {
cloud: "aws",
region: "us-east-1",
},
}
});
await pinecone.createIndex({
// add this
spec: {
serverless: {
cloud: "aws",
region: "us-east-1",
},
}
});
20 replies