Welcome to the Langchain JS Starter Template! This repository offers a profound initiation into the realm of TypeScript, harmoniously intertwined with the mystical powers of Langchainjs. Within these hallowed grounds, the essence of OpenAI's language models pulsates, waiting to be harnessed.
Prepare thyself, for this odyssey requires Node.js version 18 or higher, serving as the compass for your expedition.
- Venture forth by cloning this repository, embracing the thrill of discovery.
- Enchant your environment with the necessary dependencies through the incantation
npm install
, unveiling the secrets that lie dormant. - Craft the key to this sacred gateway: the
.env
file. Add thy OpenAI API key with utmost secrecy, inscribing something likeOPENAI_API_KEY=sk-982734...
upon its concealed parchment. - Shape the code through the fires of TypeScript, invoking its power with the invocation
npm run build
. Witness the metamorphosis of your incantations into tangible creations. - Unleash the magic within by commanding
npm run dev
, as your application breathes life, transcending the boundaries of mere mortal existence.
Within the confines of this mystical tome lies the app.ts
file, an anthology of examples drawn from the sacred texts of langchain.js. Embrace the artistry of this code and let it ignite your creativity, as you traverse the realms of possibility.
To further embrace this arcane craft, immerse thyself in the following grimoires of wisdom:
- Awesome Langchain: A compendium of enchantments, curated with the wisdom of sages.
- Chat with Langchainjs: Engage in ethereal conversations, guided by the ethereal essence of Langchainjs.
May this repository captivate thy senses, like a symphony composed by the gods themselves. As you witness the intricacies of Langchain JS unfurl, remember to bestow a celestial mark upon this sanctuary ⭐, thus embarking on a shared voyage of enlightenment.
With bated breath, embrace the ethereal dance between words and code. As the ink flows and the compiler hums, let your creation shine with the brilliance of Hemingway's prose. Happy coding, noble adventurer!