Flux
Couleur d'accent
Toutes les sources

Freek Van der Herten

104 articles Flux RSS
Programmation Web
Building RAG in Laravel: Four Ingestion Bugs That Silently Wreck Retrieval

Building RAG in Laravel: Four Ingestion Bugs That Silently Wreck Retrieval

Every Laravel RAG tutorial builds the same ingestion pipeline (chunk, embed, store) and stops the moment the agent answers on screen. None of them check whether retrieval is any good. But retrieval quality is decided at ingestion, before the model runs once, and four decisions there fail with no error, no exception, no failed test: Chunking that severs the answer mid-sentence, so answer@1 falls while source hit@1 still looks healthy. An HNSW index built with vector_l2_ops while you query with…

Freek Van der Herten
Prompt-Injection Guardrails in Laravel: Defend the Tools, Not the Prompt

Prompt-Injection Guardrails in Laravel: Defend the Tools, Not the Prompt

You can't out-prompt an attacker — to the model, your system instructions and a malicious support ticket are the same text. So stop defending the prompt and lock down the boundaries you actually control: tools scoped to the authenticated user server-side, middleware that screens and logs, output handled as untrusted input, a human in front of anything irreversible, and a fake-free test that fails CI the moment someone drops the auth scope. Read more

Freek Van der Herten
Esc