freeCodeCamp

What Is HyDE? How to Improve RAG with Hypothetical Documents

Sameer Shukla |
Retrieval-Augmented Generation, commonly known as RAG, has become one of the most widely used approaches for building applications with large language models. Instead of asking an LLM to answer entire... read more

How to Make a Static HTML Page Editable in the Browser with Vanilla JavaScript

timothy ogbemudia |
When you maintain a document for someone else, such as a résumé, a one-page portfolio, or a printable menu, the bottleneck is rarely the layout. It's the edit loop. Every small change ("move this bull... read more

How to Trace and Monitor AI Agents with LangSmith

Darsh Shah |
In this tutorial, I'll show you how to trace and monitor a local AI agent with LangSmith. We'll build a small local AI agent and then enable LangSmith tracing for it so that we can inspect model calls... read more

How to Train a Tumor Segmentation Model on Ultrasound Data with MONAI

Lakshmi Mahabaleshwara |
Most segmentation tutorials begin by choosing a model, feeding images into it, and tuning hyperparameters until the metric improves. But this skips the step that often matters most: understanding the... read more

How to Build a Reusable Date-Time Picker in React with shadcn/ui

Vaibhav Gupta |
A date and time picker is one of those components that looks small in a design file and turns into a real time sink once you start building it. You need a calendar, a time selector, a state that keeps... read more

How to Build an AI Feature With Gemini: A Practical Guide to Prompt Engineering for Developers

Joan Ayebola |
Most prompt engineering tutorials follow the same shape. Install the SDK, paste your API key, call generateContent, and print the response. The model says something plausible and the tutorial ends. Th... read more

How to Evaluate AI Code Quality: A Practical Guide for Engineers

Manish Shivanandhan |
You asked the AI to write a function. It gave you something that looks right. It even runs. But is it actually good? Most engineers stop there. They see green and move on. That habit will quietly caus... read more

"Relaxation and its Role in Vision": The 1977 PhD Thesis That Helped Shape Modern AI Research

Mohammed Fahd Abrah |
When people think of Geoffrey Hinton, they usually think of backpropagation, Boltzmann Machines, Deep Belief Networks, or the deep learning revolution that transformed artificial intelligence. But few... read more

How to Serve a Multi-User AI Agent with FastAPI and Streamlit

Darsh Shah |
In this tutorial, I’ll show you how to serve a multi-user local AI agent as a REST API using FastAPI, then add a lightweight Streamlit UI on top. Instead of interacting with the agent through a termin... read more

How to Use Apple’s Foundation Models in a Web App with a macOS Companion

Balogun Wahab |
Not every AI feature needs a cloud model, with its per-token bills, network round-trips, and private data leaving your machine. If you're on a modern Mac, a capable language model is already on your d... read more