Open Cesar1019FV opened 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
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.
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
I was creating my api key and I figured out that pinecone enviroment is no longer in the specs of the index 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