Writing
The Blog
Engineering notes, build logs, and thoughts on creative development.
Hard Isolation for Vectors: A Hands-On pgvector Laravel 13 Setup Guide
Secure your multi-tenant RAG systems by implementing PostgreSQL Row Level Security with pgvector and Laravel 13. Learn to enforce hard isolation at the database level.
Beyond Semantic Similarity: Implementing GraphRAG with pgvector and Laravel
Learn how to implement GraphRAG in Laravel using pgvector and Recursive CTEs. Move beyond flat similarity search by extracting entity triples for multi-hop AI reasoning.
Graduating Your RAG Ingestion: When Laravel Queues Hit the Ceiling and Airflow Takes Over
Moving RAG ingestion from Laravel Horizon to Apache Airflow ensures resilience for complex vector pipelines. Learn to build a 'Signal-and-Poll' pattern for robust AI data orchestration.
The Silent Search Killer: Using dbt Tests to Guard Your Vector Ingestion Pipeline
Stop silent search degradation by implementing dbt macros to validate vector dimensions, L2 norms, and semantic drift across your ingestion pipelines.
The Privacy Moat: Implementing Hard Multi-Tenancy in pgvector with PostgreSQL RLS
Secure your RAG architecture by moving from application-side metadata filtering to database-level isolation using pgvector multi-tenancy, PostgreSQL RLS, and HNSW optimization.
Livewire v4 + Reverb: Streaming Asynchronous AI Agent Responses Word-by-Word
An extensive technical layout tutorial constructing an interactive, token-streaming interface using Laravel 13. We walk through extracting real-time generative updates from the new first-party AI SDK, isolating heavy calculations via background workers, and feeding tokens straight to Livewire v4 components using Laravel Reverb WebSockets.
Hybrid Retrieval 2.0: Tuning HNSW Parameters for pgvector at Scale
Optimize pgvector HNSW parameters for million-row vector databases. This guide covers m, ef_construction, and memory management for production-grade RAG.
Hallucination-Proofing Your Agent: Building a RAG Evaluation Framework in PHP
Eliminate AI hallucinations by building a native RAG evaluation framework in Laravel 13 using Pest, LLM-as-a-judge, and quantitative metrics to verify agent faithfulness.
Model Context Protocol in Laravel: Building MCP Servers with the AI SDK
Standardize your AI integrations by building MCP servers in Laravel 13. Learn to map tools to resources and implement SSE transports for high-scale Kafka and vector data pipelines.