a16z-infra/companion-app

Can't generate embeddings

Closed this issue · 1 comments

So I followed every step carefully, but whenever I use npm run generate-embeddings-pinecone it gives me the following error message:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@pinecone-database/pinecone' imported from C:[...]\companion-app\src\scripts\indexPinecone.mjs

Same with Supabase, after uncommenting it in the .env.local file:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from C:[...]\companion-app\src\scripts\indexPGVector.mjs

So to me it looks like in both cases it doesn't find the .env.local file to get the credentials, but I have no clue how to fix that.

image
image

Sorry for the delay in reply here.
It seems like your PINECONE_ENVIRONMENT variable is wrong, it should be something like us-west-gcp