Loading…
Browse by type
Tutorial reads
Tutorial posts on Yomu, summarised newest first.
- 789 posts
- 20 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Tutorial posts
Integrate Claude, Anthropic’s AI Assistant, with Twilio Voice Using Conversation Relay
Twilio’s Conversation Relay enables real-time voice applications with AI LLMs over a WebSocket connection. This tutorial demonstrates integrating Claude, Anthropic’s AI model, with Twilio Voice using Conversation Relay. The setup uses a Node.js server with Fastify, the Anthropic SDK, and a system prompt that instructs the model to spell out numbers and avoid special characters for better text-to-speech. The server exposes two endpoints: /twiml for TwiML instructions and /ws for the WebSocket relay. The tutorial tests the integration with Claude Sonnet 5.5 and Haiku 5.5 at low effort, both handling real-time voice well. The result is a functioning voice assistant that can be called via a Twilio phone number.
Add Token Streaming and Interruption Handling to a Twilio Voice Anthropic Integration
This tutorial extends a basic Twilio Conversation Relay voice assistant that uses Anthropic Claude in Node.js by adding token streaming and interruption-aware conversation tracking. The author replaces the aiResponse() function with aiResponseStream(), which uses anthropic.messages.stream() to receive content_block_delta text chunks and forwards each token to Conversation Relay with last: false before sending an empty final token with last: true. The prompt handler now awaits the streamed response and pushes the assistant role and content into local session storage. To handle interruptions, the app listens for Conversation Relay interrupt messages and uses utteranceUntilInterrupt to find the last assistant message containing the heard text, truncating that message and removing later assistant turns so the model knows how far the caller heard. Testing requires an ngrok tunnel, a Twilio number configured with a /twiml webhook, and a phone call to verify the changes.
How to build a proactive agent for AI outbound calling
Most AI agents are reactive, waiting for customers to initiate contact, which turns service issues into damage control. A proactive AI agent instead starts conversations based on system events, such as a delayed shipment, reaching out before the customer discovers the problem. The post outlines six ordered components: consent and contact rules, CRM event triggers, context loading, channel selection, scheduling, and human handoff. It details how Twilio Segment detects events, Agent Connect starts conversations, and Conversation Memory’s Recall endpoint provides customer context. The author emphasizes that consent must precede any trigger and that context must load before the first message, with a pre-launch checklist covering opt-outs, frequency limits, and agent identification.
Hill-Climbing Agent Quality with Agents CLI Evaluation
The Agents CLI eval namespace supports a hill-climbing quality loop through iterative generate, grade, compare, analyze, and optimize commands. Starting with a four-case dataset expanded from a single default, the first eval run produces a baseline mean score of 4.0 on the custom_response_quality metric with a standard deviation of 1.41. A regression introduced by a swapped chef persona system prompt dropped the mean to 2.75, and the per-case diff from eval compare revealed tool misuse on weather questions that unit tests could not catch. The workflow supports automated prompt optimization via eval optimize using GEPA, but the candidate prompts require human review to avoid overfitting to the metric. Effective hill-climbing requires a small dataset that runs on every change, snapshotting full result files for later regression analysis, and treating summary metrics with suspicion as shown by the stdev tightening from 1.41 to 0.96 during the regression.
Getting Started With MongoDB And AWS CodeWhisperer
AWS CodeWhisperer, now part of Amazon Q Developer, is an AI code assistant trained on billions of lines of code that generates real-time suggestions from snippets to full functions. MongoDB collaborated with AWS Data Science to fine-tune CodeWhisperer’s foundational models specifically for MongoDB, improving code suggestion quality for developers. This tutorial focuses on setting up CodeWhisperer in VS Code via the AWS Toolkit extension, though it also supports other IDEs like AWS Cloud9 and JupyterLab. Users can start without an AWS account, and the service is currently free for individual users. The guide covers installation, authorization with a Builder ID, navigating suggestions with TAB and arrow keys, and best practices like writing descriptive comments and using import statements.
Unlocking Investment Insights Without Migrating Your Data: Lakehouse Federation
Financial institutions keep sensitive portfolio data, trading positions, and client information in on-premises databases like SQL Server, while third-party market data such as FactSet analyst estimates and financial fundamentals lives in the cloud. Traditional approaches require copying data or building brittle ETL pipelines, introducing cost, risk, and compliance burden. Databricks Lakehouse Federation solves this by letting users create federated connections to external databases and query them directly with standard SQL without moving the data. In a wealth management walkthrough, users combine a federated on-premises holdings catalog with FactSet data subscribed through the Databricks Marketplace in a single Unity Catalog SQL query. This query powers interactive dashboards and Genie natural-language queries, eliminating materialized views, pipelines, and any need to persist intermediate objects while keeping sensitive data on-premises.
Publishing LMS courses with a Kiro SCORM pipeline
Manually packaging SCORM courses for an LMS requires restructuring slides and editing manifests, pulling authors away from content development. Kiro, an agentic AI with an IDE and CLI, automates this conversion through a two-stage pipeline: course development and course build. The pipeline uses steering files for persistent context, specs for formalizing features, and hooks for automatic linting, building, and validating. In a test with a bundled sample course, Kiro produced an upload-ready SCORM 1.2 zip package in a few minutes after a single prompt. The entire pipeline is stored as version-controlled artifacts in the repository, making it reusable across courses and teams.
Fine-Tuning NVIDIA Nemotron to Know Local Rules, Not Just Local Languages
General-purpose language models often lack local knowledge and cultural precision needed for specific applications. NVIDIA released Nemotron-Personas datasets for France and Belgium, grounded in demographic and geographic distributions, to enable locale-specific fine-tuning of open models. Using these persona datasets, the tutorial demonstrates a complete workflow that generates synthetic conversations with grounded personas, fine-tunes Nemotron models using LoRA and the NVIDIA NeMo stack, and evaluates the adapted model against the base on task correctness, fluency, and safety. In an example passport-application query for a user unable to travel, the fine-tuned model correctly directs them to request a home visit with a medical certificate, whereas the base model gives unsupported postal application advice that conflicts with official procedures. The same workflow can be applied to other domains and languages by swapping in different personas, behavior contracts, and domain-specific reviewers, supporting regional customization across markets.
How to teach with Databricks Free Edition
Databricks Free Edition offers a perpetually free, browser-based version of the enterprise Databricks platform for teaching, with no cloud contract or credit card required. Students work entirely in the browser, eliminating setup costs, and because it uses the real platform rather than a simplified sandbox, skills transfer directly to industry. One environment supports collaborative notebooks, Apache Spark, Delta Lake, MLflow, and AI agent building, covering statistics, database, analytics, and AI coursework. Instructors distribute assignments via LMS or GitHub, share datasets through Open Sharing or the Marketplace, and students collaborate in real time with up to five per account. Daily compute credits reset and can be doubled up to three times per year to manage peak periods like exams.
Data governance with annotations in Amazon S3
Amazon S3 Annotations lets you attach governance context directly to S3 objects without rewriting them. Each object version can hold up to 1,000 annotations, each 1 byte to 1 MB in UTF-8 format such as JSON. Annotations travel with the object during copy or replication, remain readable in cold storage like Glacier Deep Archive without restoration, and can be updated in place without changing the object’s ETag. The pattern uses a governance annotation payload capturing classification, retention, jurisdiction, PII, and rationale, and supports backfill of existing objects. At scale, an S3 Metadata annotation table backed by Apache Iceberg enables SQL querying via Amazon Athena for governance questions like which objects hold PII and have expired retention across large object populations.
Getting started with the Supabase .NET SDK
The Supabase .NET SDK provides a single C# client for Auth, Database, Storage, Realtime, and Edge Functions; version 8.0.0 moves serialization to System.Text.Json and adds injectable HttpClient with retry. It also ships a dependency injection package for ASP.NET Core that registers the client as scoped via IHttpClientFactory to pool connections. Models derive from BaseModel with table and column attributes; queries use From () with Where filters, and updates require explicit calls without a change tracker, supporting both model-based and query-builder approaches. Authentication covers email/password, OAuth, magic links, phone, and SSO, with auto-refresh tokens attaching to subsequent requests for Row-Level Security. Setup for ASP.NET Core uses AddSupabase, while other apps construct the client manually and call InitializeAsync; the post also distinguishes publishable and anon keys for client apps from secret and service keys that bypass Row-Level Security.
Give Claude Code a cloud computer with MCP
Claude Code runs commands on your local machine, but tasks like cross-platform builds or heavy compilation benefit from a remote VM. This guide connects Claude Code to a cloud Linux VM through the BoxCompute MCP server, enabling Claude to create, start, and stop VMs, run commands with up to 15-minute background execution, read and write files under /workspace, and generate one-hour public preview links for ports. Setup takes about two minutes: add the MCP server via a CLI command, authenticate through a browser sign-in, then ask Claude in plain language to create a VM and work on it. A small VM costs roughly $0.05 per hour, stops after thirty minutes of idle time, and retains files for later use. The same MCP server works with Codex and Cursor, requiring only an API key file.
Give Deep Agents a Searchable Filesystem on MongoDB Atlas
A multi-agent pipeline with a coordinator, three search sub-agents, and a reconciler searches a 2,900-page, 45-file federal docket on room air cleaner efficiency standards from the U.S. Department of Energy using a virtual filesystem on MongoDB Atlas. The VFS backend routes search operations like glob and grep to Atlas Search and Vector Search, where $rankFusion combines full-text and vector results natively in a single database-side query, while S3 holds the original bytes as the source of truth. A polling watcher keeps the Atlas index aligned with S3 bucket changes. Agents work incrementally through ls, glob, grep, read, write, and edit operations without loading the entire corpus into their context window. The pipeline can be interrupted and resumes from the last completed stage using saved run state, costing $2 to $5 in API calls over about 45 minutes.
Using AI Agents to Teach Robots Like Microduck to Walk in Simulation
Teaching a robot to navigate an obstacle course requires perceiving surroundings, maintaining balance, and adjusting actions when obstacles block the path. NVIDIA RTX Spark serves as a local development hub for AI-assisted planning and policy validation, while NVIDIA Isaac Lab provides the robot-learning framework for reinforcement learning in the cloud. The workflow begins with Hermes and NVIDIA Nemotron 3.5 Bolt translating a user prompt into a step-by-step project plan, then delegates asset creation to Astra, which uses FreeCAD and Blender to generate 3D models. Isaac Lab trains a shared policy across thousands of parallel simulations, with Isaac Sim supporting local validation of the trained policy. The final simulation establishes a foundation for physical deployment, where differences between simulation and real-world behavior require further refinement using domain randomization and better actuator models.
Advanced authentication for Data Grid in Red Hat OpenShift 4: LDAP and LDAPS
This article, part 2 of a series on securing Red Hat Data Grid on OpenShift 4, explains direct LDAP and LDAPS authentication against directory services using the Data Grid operator. The operator references a ConfigMap via spec.configMapName on the Infinispan custom resource to define LDAP server URLs, principal credentials, search DNs, and user role mappings. For LDAPS, the operator imports the directory server certificate into the pod truststore via a secret referenced by spec.security.endpointEncryption.clientCertSecretName, with clientCert set to None, Validate, or Authenticate to control mutual TLS. A test setup deploys OpenLDAP using a Helm chart and configures the security realm; the example uses hardcoded plaintext credentials, but production deployments should use encrypted keystores or OpenShift secrets. The author recommends LDAPS for production to encrypt credentials in transit and positions direct LDAP as a lean alternative to deploying a centralized SSO identity provider like Keycloak.
Locking down MCP at the gateway
Model Context Protocol (MCP) allows an agent to use tools across enterprise systems, but a shared MCP gateway requires a policy boundary beyond authentication. The article describes using Red Hat Connectivity Link (RHCL) AuthPolicy to validate OIDC or JWT credentials and then authorize per-tool access based on roles in the identity provider claims. NetworkPolicy controls which workloads can communicate with the gateway and MCP servers, while RateLimitPolicy limits request volume. Gateway isolation can be achieved with separate gateway instances or a shared gateway with isolated listeners, each with its own MCPGatewayExtension. These controls map to OWASP risks for LLM and agentic applications, including excessive agency, unbounded consumption, tool misuse, and identity abuse.
Advanced authentication for Data Grid in Red Hat OpenShift 4: Keycloak and SSO
The article details configuring authentication for Red Hat Data Grid in Red Hat OpenShift 4 by delegating console access control to single sign-on using Red Hat build of Keycloak. It explains that Data Grid acts as an OIDC client using the public datagrid-console client to initiate the authorization code flow, with Keycloak handling login and redirecting back. The Helm chart values define a security realm with a tokenRealm containing authServerUrl and introspectionUrl, the latter pointing to the internal Keycloak service for OAuth2 introspection. Two Keycloak clients are required: datagrid-console for browser-based authentication and datagrid-client, using a client secret, for token introspection. The article also compares Red Hat build of Keycloak with the deprecated SSO, noting differences in runtime foundation (Quarkus vs JBoss EAP), custom resources, and endpoint paths.
How to Read Data into GPU Memory in Python with NVIDIA GPUDirect Storage
GPU applications face growing datasets that demand efficient data movement to keep accelerators supplied. NVIDIA GPUDirect Storage (GDS) enables a direct path between storage and GPU memory through the nvidia-fs kernel module, bypassing CPU staging. KvikIO provides Python interfaces over cuFile with defaults of a 16 KiB GDS threshold and 4 MiB task size, and its compat_mode setting determines whether cuFile is invoked. This tutorial demonstrates reading a 1 GiB file into a CuPy buffer on an H100 system with NVMe and verifying the path by setting CUFILE_STATS_LEVEL=3 and inspecting gds_stats output. With four cuFile worker threads and max_request_parallelism set to four, the default task size divides the read into 256 cuFile requests, while a 1 GiB task size results in four 256 MiB pieces processed through bounce buffers with slab caching.
Local inference and benchmarking with Red Hat AI Inference
This guide covers deploying a local LLM inference server on RHEL with Red Hat AI Inference containers, requiring x86_64 CPU, NVIDIA or AMD GPUs with at least 8 GB VRAM, and 45 GB storage. Users select a model by GPU VRAM, such as RedHatAI/Qwen3.6-35B-A3B-NVFP4 for a 48 GB L40S GPU, and run vLLM in Podman with flags for GPU access and memory utilization. Benchmarking with GuideLLM simulates 1 to 100 concurrent users across profiles like balanced (1000 prompt, 1000 output tokens), decode-heavy (512, 2048), or prefill-heavy (2048, 128). Model quality is tested via Open WebUI using tasks like prompt engineering to explain LLM behavior and a Python CLI scheduling script for meeting management. The goal is on-premises AI speed and privacy without external API reliance.
Building Kubernetes resilience with Krkn: A 4-phase chaos engineering blueprint
The post presents a four-phase chaos engineering blueprint for Kubernetes using Krkn. Phase 1, Strategize, defines a resilience baseline by selecting a critical user journey, mapping dependencies, and writing a hypothesis linking failure to expected behavior with SLO-based acceptance criteria. Phase 2, Execute and harden, validates recovery through a consistent sequence of prepare, disrupt and observe, and restore and verify, using Prometheus and application checks. Phase 3, Explore, uses Krkn-AI’s evolutionary algorithms to uncover hidden failure paths, including latency, packet loss, and resource pressure combinations, with customizable configurations. Phase 4, Future-proof and CI, builds reusable workflows using Krkn Operator and Chaos Studio’s visual editor, integrates them into CI/CD pipelines, tracks resilience scores with weighted SLO checks (default 3 for critical, 1 for warnings), and emphasizes repeatability, version-controlled test plans, and pre-flight validation before infrastructure changes, such as verifying that CPU tuning does not increase recovery time beyond a 60-second requirement.
Top topics
- Architecture852
- Performance851
- LLMs749
- AI Agents716
- Machine Learning644
- AI633
- Open Source601
- Developer Experience461
Weekly digest
The best engineering reads, once a week.