ChatGPT is cool, but how do we go about actually developing something that could make it's way to production?
This repo provides scripts that iteratively build upon each other to build an HTTP API that can receive an input recipe name and it returns the most relevant category using an LLM.
Copy the .env.dist
to create .env
and fill in the required values.
cp .env.dist .env
You will need to have an OpenAI API key and a LangSmith API Key:
(Optional): Use Node version 20 with nvm
nvm use
Install dependencies
npm install
npm run 1 # This is a simple hello world script
npm run 2 # This prototypes calling the API with a recipe name
npm run 3 # This demonstrates how to receive structured output
npm run 4 # This shows how to use LangSmith to iterate
npm run 5 # This runs a HTTP API on port 3000
npm run 5-experiment # This runs an experiment using the same chain from the API
This code is not ready for production :) please don't ship the API 😅
I'd love to hear if you build something cool as a result of my talk or this repo (regardless of whether it gets to production!)
Send me a message on LinkedIn to say G'day!
- Langchain.js docs
- Unsupervised Learning Podcast:
- DeepLearning.ai courses - free and great!
- /r/LangChain
- LLMs in Production online conference replay