Open jwalishjoseph opened 4 months ago
Use this :
import { Pinecone } from '@pinecone-database/pinecone';
export const getPineconeClient = async () => {
const client = await new Pinecone(
{
apiKey: process.env.PINECONE_API_KEY!,
environment: 'gcp-starter',
}
)
return client
}
\src\lib\pinecone.ts