Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 747 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 747 Bytes

Node.js Prompt Engineering Examples

Node.js port of the Python examples in the DeepLearning.AI course: ChatGPT Prompt Engineering for Developers.

Some of the code in this repo was "dogfooded" by asking ChatGPT to port the relevant Python example to Node.js, followed by manually cleaning up and correcting the result.

Setup

  1. Clone this repo.
  2. Sign up for an OpenAI account.
  3. Fund it with a minimal amount credits. You can set a monthly limit.
  4. Create an OpenAI API key and copy it to a file .env at the root of this repo, using the .env.example for guidance.
  5. Install Node.js >= v18.
  6. Run npm install.
  7. Run each example, e.g. node examples/principle-1/tactic-1.js