Elliott-Chong / chatpdf-yt

https://chatpdf-elliott.vercel.app
717 stars 298 forks source link

PINECONE ENVIROMENT NO LONGER EXIST #53

Open Cesar1019FV opened 4 months ago

Cesar1019FV commented 4 months ago

I was creating my api key and I figured out that pinecone enviroment is no longer in the specs of the index image I used the aped-4627-b74a as the enviroment but I really dont know if it is going to work, If anyone faced this issue, please tell me how to solve it and if am i doing well using that enviroment, cause the pinecone version the project is using, needs an enviroment

Cesar1019FV commented 4 months ago

Hi, if anyone is facing this problem, I found the solution:

1- First update your "@pinecone-database/pinecone" to the latest version 2- You have to eliminate the enviroment and just leave the apikey in getPineconeClient, like this: export const getPineconeClient = () => { return new Pinecone({ apiKey: process.env.PINECONE_API_KEY! }); };

And thats All

ris-h-av commented 1 month ago

Hi! Can you please share the your repo I'm stuck with the pinecone part. Or you can just provide the pinecone.ts here please.

Cesar1019FV commented 1 month ago

I changed some parts so idk if I can share the entire file, but this is the part that solved me that problem:

export const getPineconeClient = () => { return new Pinecone({ apiKey: process.env.PINECONE_API_KEY!, }); };

the problem was only to get the PineconeClient, son that was all i needed to do also remember to update your "@pinecone-database/pinecone" to the latest version