Learn hybrid search for RAG: combine BM25 keyword search and vector search with RRF, re-rank results with a cross-encoder and rewrite vague queries.
Continue reading...Agentic AI Part 4: Build Your First AI Agent from Scratch in Python (No Framework)
Build an AI agent in Python from scratch with no framework: tools, instructions, memory and a safe agent loop, with runnable code and a terminal chat demo.
Continue reading...Generative AI Part 12: Document Loading and Chunking Strategies for RAG
Learn document loading and chunking strategies for RAG: load PDF, HTML and Markdown in Python and Node.js, compare chunk size and overlap, and test the results.
Continue reading...Generative AI Part 11: RAG Fundamentals: Retrieval-Augmented Generation Explained
Learn RAG fundamentals: how retrieval-augmented generation works, how to write a RAG prompt with citations, and build a RAG app in Python and Node.js.
Continue reading...Generative AI Part 10: Vector Databases: pgvector, Chroma and Pinecone
Learn what a vector database is and how to store and search embeddings with Chroma, pgvector and Pinecone, using runnable Python, Node.js and SQL examples.
Continue reading...Generative AI Part 9: Embeddings Explained: Turning Text into Vectors
Learn what embeddings are, how cosine similarity works and how to build a semantic search with OpenAI and Ollama in Python and Node.js. Beginner friendly.
Continue reading...Generative AI Part 8: Structured Outputs for Reliable JSON from LLMs
Learn structured outputs for LLMs: get reliable JSON from OpenAI and Ollama using Pydantic and Zod schemas, plus validation and retry in Python and Node.js.
Continue reading...Node.js 26 LTS: New Features and How to Upgrade Safely
Node.js 26 LTS is here. Learn the new features like Temporal, Map.getOrInsert and localStorage, the breaking changes, and how to upgrade safely, step by step.
Continue reading...Node.js Part 3: npm and package.json: Installing and Managing Packages
Learn npm and package.json step by step: install packages, dependencies vs devDependencies, ^ and ~ version ranges, package-lock.json, npm ci and npm scripts.
Continue reading...React Part 3: Components and Props: Building Reusable UI
Learn React components and props step by step: create reusable components, pass data with props, use children and defaults, and build a ProductCard.
Continue reading...