πŸ“• LangChain for JavaScript developers is now out!
Build 5 Next.js apps with ChatGPT integrated features using LangChain.

[Js-Craft #52] Integrate AI models in Javascript apps, interview question, and Prompt Templates

Hey firends! It's Daniel here, the guy who manages the js-craft.io website. I hope your week was great! Mine was fairly busy with meetings, book writing and more. But it was a fun kind of busy. Let’s learn!

In this edition of the newsletter:

  • πŸ“• Langchain.js - How to integrate AI models into Javascript apps book update

  • 🎁 New content on Js-Craft.io
  • πŸŽ“ Algorithms interview question
  • 🏝 Some non-coding things that I've enjoyed lately

Langchain.js - How to integrate AI models into Javascript apps book updates

Happy to say that the book is 80% ready. The content is done. Now working on the final edit and checkup.

Some key figures about the book:

  • you can check one chapter of the book here
  • 5 examples, including a Trivia game, a Story Teller app and more. All powered by AI models
  • the launching price will be 15USD. You can sign up for a discount here
  • launching interval 27-31 of May
  • estimated length, around 100 pages

Below is a preview of the book cover:

Alongside LangChain the book uses React and NextJs. If you want a refresh on React you can check out my course on Skillshare (and get one month free).

🎁 New content on Js-Craft.io

Wrote a new article about Prompt Templates in LangChain.js.

In their essence, LLMs are giant functions that map text to text. They have text as their main inputs and outputs. LangChain has a core module dedicated to interacting with prompts. Give it a read here.

πŸŽ“ Algorithms interview question

Decided to add a new section to the newsletter. Each edition will have an interview question puzzle to solve.

Why? Because it's fun and useful. Kind of the way crosswords are. Brain gym πŸ‹οΈβ€β™€οΈ

This week’s question:

The Settlers of Catan board game has 18 number hexes (two each of 3, 4, 5, 6, 8, 9, 10, 11, and one each of 2 and 12), and one desert hex in a large hexagon formation. Generate a valid randomized Catan board in which 6s and 8s cannot touch each other.

Examples of valid boards:

Will try to keep the questions as fun as possible 😁. You can submit your answers by replying to this email with a link to your solution, or write me on Twitter or Mastodon.

🏝 Some non-coding things that I've enjoyed lately

Finally, the weather was nice enough to start traveling again. We made a short trip to the Bulgarian seaside and visited the Balchik Palace, the ancient city of Nessebar (UNESCO heritage), and Sozopol.

On the fun sitting-in-front-of-a-screen side, I've played a lot of JYDGE and seen The Ghost Writer (a bit old, but a great movie).

Well, that's all folks! See you the next time. Be smart, be kind, and keep coding!

πŸ“– 50 Javascript, React and NextJs Projects

Learn by doing with this FREE ebook! Not sure what to build? Dive in with 50 projects with project briefs and wireframes! Choose from 8 project categories and get started right away.

πŸ“– 50 Javascript, React and NextJs Projects

Learn by doing with this FREE ebook! Not sure what to build? Dive in with 50 projects with project briefs and wireframes! Choose from 8 project categories and get started right away.


Leave a Reply

Your email address will not be published. Required fields are marked *