Langsung ke konten utama

Postingan populer dari blog ini

You’re Using ChatGPT Wrong! Here’s How to Be Ahead of 99% of ChatGPT Users

 Most of us use ChatGPT wrong. We don’t include examples in our prompts. We ignore that we can control ChatGPT’s behavior with roles. We let ChatGPT guess stuff instead of providing it with some information. This happens because we mostly use standard prompts that might help us get the job done once, but not all the time. We need to learn how to create high-quality prompts to get better results. We need to learn prompt engineering! And, in this guide, we’ll learn 4 techniques used in prompt engineering. If you don’t feel like reading, you can watch my video below. Few Shot Standard Prompts Few shot standard prompts are the standard prompts we’ve seen before, but with examples of the task in them. Why examples? Well, If you want to increase your chances to get the desired result, you have to add examples of the task that the prompt is trying to solve. Few-shot standard prompts consist of a task description, examples, and the prompt. In this case, the prompt is the beginning of a new...

TypeScript CRUD Rest API, using: Nest.js, TypeORM, Postgres, Docker and Docker Compose

 Let's create a CRUD Rest API in Typescript using: NestJS (NodeJS framework) TypeORM (ORM: Object Relational Mapper) Postgres (relational database) Docker (for containerization) Docker Compose If you prefer a video version: All the code is available in the GitHub repository (link in the video description): youtube.com/live/gqFauCpPSlw Here is a schema of the architecture of the application we are going to create: crud, read, update, delete, to a NestJS app and Postgres service, connected with Docker compose. Postman and Tableplus to test it We will create 5 endpoints for basic CRUD operations: Create Read all Read one Update Delete Here are the steps we are going through: Create a new NestJS application Create a new module for the users, with a controller, a service and an entity Dockerize the application Create docker-compose.yml to run the application and the database Test the application with Postman and Tableplus We will go with a step-by-step guide, so you can follow along. Re...

March Madness: Relationships and Basketball have a lot in Common

 Co-authored with  Robin Stern, PhD ’Tis the season for March Madness, and we don’t mean just basketball. A lesser-known use of the phrase popularized in the early 1900s is in reference to “a form of madness or uncharacteristic behavior said to affect people in March”. For anyone on the East coast familiar with — and, not a fan of — the inclement shifts in weather and lingering dark days of winter, this makes sense. And there is no shortage of research indicating that simply surviving the bleakest time of year is a feat of mind, body, and spirit. But when this madness bleeds into our relationships, as it inevitably can, it is important to know how you can regulate the burgeoning restlessness of early Spring and cultivate healthier connections. And for those of you who just can’t think about March Madness without basketball — take this opportunity to think about what basketball and relationships have in common: practicing necessary skills and good form to move both forward; rem...