chat-langchainjs icon indicating copy to clipboard operation
chat-langchainjs copied to clipboard

Getting started issue

Open aadityarajkumawat opened this issue 2 years ago • 4 comments

# yarn ingest is not working
yarn ingest
Screenshot 2023-02-21 at 7 48 06 PM

aadityarajkumawat avatar Feb 21 '23 14:02 aadityarajkumawat

I'm experiencing the same thing. When I follow the suggestion to add "type":"module" I get a TypeError TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for ingest.ts

sambroe avatar Feb 21 '23 19:02 sambroe

Yes, I get the same error, I really want to use this, but not sure how to get this resolved.

aadityarajkumawat avatar Feb 21 '23 19:02 aadityarajkumawat

can you try the instructions now?

hwchase17 avatar Feb 25 '23 23:02 hwchase17

Related to getting started. I've created a .env file and added my API_KEY but I don't see a reference to it anywhere and I'm getting this error when running yarn && yarn ingest

    data: {
      error: {
        message: 'Incorrect API key provided: undefined. You can find your API key at https://platform.openai.com/account/api-keys.',
        type: 'invalid_request_error',
        param: null,
        code: 'invalid_api_key'
      }
    }

I just created a new key and I used it earlier today so I know it works. It appears that .env is not being loaded or referenced. I think the read_me would benefit from more explicit instructions. I am still able to run the project locally and see it work by using yarn dev.

jackson-sandland avatar Feb 26 '23 00:02 jackson-sandland