- Node 20.10.0
- dotenv
- OpenAI
- langchain
- macOS: Sonoma 14.3
- bash / zsh
- create a
.env
file in the root directory - create an OpenAI developer account
- create an OpenAI API key
- add your API key to the
.env
file using the following format:OPENAI_API_KEY="<APIKey>"
$ npm i
$ node search.js
In search.js
, you can:
- change the data you're searching
- change the search term