to run it simply fork this repo and edit the .env_sample and make it .env and fill in the values
then run
npm i
npm run dev
We also have another example of just using OpenAI directly in the src/openai.ts file
Big shout out to LangChainers on their Feb 26th 2023 article https://langchainers.hashnode.dev/getting-started-with-langchainjs
And the most impressive explanation video (but it's in python) https://learn.deeplearning.ai/langchain
With more details available on the official https://js.langchain.com/docs/get_started/installation
And just for fun, take a look at the HuggingFace.js library https://huggingface.co/docs/huggingface.js/index