Retrieval-augmented generation on a WordPress site works like this: index your

pages, find the passages that match the visitor's question, paste them into the

model's system prompt, ask for an answer.

The third step is where the problem is, and I shipped it.

The shape of the bug