a16z-infra / companion-app

AI companions with memory: a lightweight stack to create and host your own AI companions
https://ai-companion-stack.com/
MIT License
5.76k stars 959 forks source link

Can't generate embeddings #89

Closed ArkfrostLumas closed 1 year ago

ArkfrostLumas commented 1 year ago

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

jenniferli23 commented 1 year ago

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