Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project name not set. Call init() first. #4

Open
mohammadhunan-dev opened this issue Mar 23, 2023 · 2 comments
Open

Project name not set. Call init() first. #4

mohammadhunan-dev opened this issue Mar 23, 2023 · 2 comments

Comments

@mohammadhunan-dev
Copy link

Hey, I'm getting the following error when trying to npm run ingest:

/notion-chat-langchain/node_modules/@pinecone-database/pinecone/dist/index.js:172
            throw new Error('PineconeClient: Project name not set. Call init() first.');
                  ^

Error: PineconeClient: Project name not set. Call init() first.
    at PineconeClient2.PineconeClient2.Index (/notion-chat-langchain/node_modules/@pinecone-database/pinecone/dist/index.js:172:19)
    at null.run (/notion-chat-langchain/scripts/ingest-data.ts:28:28)
    at null.<anonymous> (/notion-chat-langchain/scripts/ingest-data.ts:43:3)
(node:96491) UnhandledPromiseRejectionWarning: /notion-chat-langchain/scripts/ingest-data.ts:38
    throw new Error('Failed to ingest your data');
          ^

I've updated the .env with the correct credentials. Perhap this is an issue with incorrect API implementation?

@shynsky
Copy link

shynsky commented Mar 28, 2023

@mongomoe - Maybe paste a structure (without actual values) of your .env file here.

@roulendz
Copy link

roulendz commented Apr 6, 2023

Hey, I'm getting the following error when trying to npm run ingest:

/notion-chat-langchain/node_modules/@pinecone-database/pinecone/dist/index.js:172
            throw new Error('PineconeClient: Project name not set. Call init() first.');
                  ^

Error: PineconeClient: Project name not set. Call init() first.
    at PineconeClient2.PineconeClient2.Index (/notion-chat-langchain/node_modules/@pinecone-database/pinecone/dist/index.js:172:19)
    at null.run (/notion-chat-langchain/scripts/ingest-data.ts:28:28)
    at null.<anonymous> (/notion-chat-langchain/scripts/ingest-data.ts:43:3)
(node:96491) UnhandledPromiseRejectionWarning: /notion-chat-langchain/scripts/ingest-data.ts:38
    throw new Error('Failed to ingest your data');
          ^

I've updated the .env with the correct credentials. Perhap this is an issue with incorrect API implementation?

in package.json chhange

"@pinecone-database/pinecone": "0.0.10",

and then run

npm install

this should fix the isshue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants