ALENZA CODES

Retrieval-augmented generation (RAG)

Having a language model answer using documents retrieved from a chosen source at query time.

RAG grounds answers in your own content (policies, manuals, records) and can cite sources, which reduces but does not eliminate hallucination. Risks include retrieving the wrong or outdated document, exposing documents a user should not see, and indirect prompt injection through retrieved content.