chat-langchainjs
chat-langchainjs copied to clipboard
Getting started issue
# yarn ingest is not working
yarn ingest
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
Yes, I get the same error, I really want to use this, but not sure how to get this resolved.
can you try the instructions now?
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.