AI & LLMs

Streaming LLM responses with Laravel Reverb

Polling made our chat feel like a fax machine. Here is the WebSocket setup that puts the first token on screen in 300 ms, and the two mistakes that cost me a weekend.

Read more

Embeddings in Postgres with pgvector and Eloquent

You do not need a vector database yet. One migration, one scope, and a cosine operator.

Read more

Reranking: the cheap step everyone skips

A small second model that reorders what retrieval found.

Read more

Chunking documents without losing the plot

How to cut long documents into pieces that still make sense on their own.

Read more

Measuring whether any of it helped

A small eval set and three numbers that say whether retrieval got better.

Read more