Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
NEW

Reinforcement Learning in Python for LLM Fine-Tuning: Build a Simple RLHF PPO Pipeline

Short version: RLHF with PPO starts from a supervised-fine-tuned model and nudges it toward preferred outputs. You train a reward model on pairwise comparisons, then use PPO to update the policy while keeping it tethered to the starting checkpoint. The training loop generates completions, scores…
Thumbnail Image of Tutorial Reinforcement Learning in Python for LLM Fine-Tuning: Build a Simple RLHF PPO Pipeline
NEW

Python dotenv for LangChain Agents: Safe .env Patterns for RAG, Tools, and Local LLM Apps

Watch: Build a RAG (Retrieval-Augmented Generation) System from Scratch | Python + Vector DB + LLM by CodeVisium Python-dotenv gives local LangChain projects a simple way to keep credentials out of source code while still making them available through os.environ. It works well for solo prototypes,…
Thumbnail Image of Tutorial Python dotenv for LangChain Agents: Safe .env Patterns for RAG, Tools, and Local LLM Apps

I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

This has been a really good investment!

Advance your career with newline Pro.

Only $40 per month for unlimited access to over 60+ books, guides and courses!

Learn More
NEW

Let Your Internal AI Agent Rewrite Its Own Prompts From Failed Runs

When you build AI agents that rewrite their own prompts after failed runs, you're addressing a gap that's been draining engineering time: the hidden orchestration tax of manual prompt iteration. The shift matters because every ambiguity in an agent prompt compounds across steps, turning vague…
Thumbnail Image of Tutorial Let Your Internal AI Agent Rewrite Its Own Prompts From Failed Runs

Grep Beats Embeddings for Some AI Coding Tool Tasks: Use Deterministic Search Before You Build RAG

Watch: Is RAG Still Needed? Choosing the Best Approach for LLMs by IBM Technology Short version: A SWE-Bench Verified agent using only grep and find reached the top of the leaderboard without any semantic indexing. A single exact-name query can use far fewer tokens with grep than broad embedding…
Thumbnail Image of Tutorial Grep Beats Embeddings for Some AI Coding Tool Tasks: Use Deterministic Search Before You Build RAG

Build an AI Agent in 60 Lines of Python Before Reaching for LangChain

Watch: Build an AI Agent From Scratch in Python - Tutorial for Beginners by Tech With Tim Understanding the agent loop stopped being optional the moment you tried to change one thing in a framework demo and couldn't find where the loop lived. Quickstarts run fine until you need to touch them. A…
Thumbnail Image of Tutorial Build an AI Agent in 60 Lines of Python Before Reaching for LangChain

Email Newsletter

Trusted by 200,000+ developers!

Popular Topics