Skip to main content

AIDA - Why an LLM Needs More Than a Good Prompt

Thoughts on RAG, embeddings, and why supplying the right knowledge matters more than making an answer sound confident.

One of the first topics we explored in AIDA was Retrieval-Augmented Generation, or RAG. Before the course, my mental model of an AI assistant was mostly a chat interface: write a prompt and hope the model knows enough to answer.

RAG changes that picture. Instead of depending only on information represented in a model’s training, an application can look up relevant material and include it as context for the answer.

How I understand the basic flow

Imagine a collection of documents that an ordinary language model has never seen: internal guidelines, project notes, or technical manuals. A typical RAG workflow breaks the material into chunks, represents those chunks using embeddings, and stores them in a searchable index. When a question arrives, the application retrieves relevant passages and supplies them to the model.

The retrieval step is important. The model is not magically learning an entire document library. It is answering with the help of a relatively small selection of information that the system was able to find.

We discussed RAG architecture, retrieval quality, prompting, and practical limitations across the RAG lessons. I particularly like the distinction between finding evidence and generating an answer. Those are separate problems, and getting only the second part right is not enough.

Where this could be useful

With my IT support background, I immediately think of a knowledge base for common support questions. Instead of searching through many pages manually, you could ask a question in normal language and get an answer based on current documentation.

But that application would only be useful if it could show where the information came from. A confident answer with the wrong policy or an outdated configuration would be worse than a search result that honestly admits uncertainty.

This is also why RAG interests me from a security perspective. A document repository might contain information with different access levels. A retrieval system must not treat every stored file as information every user is allowed to see.

Better retrieval does not eliminate hallucinations

Even with RAG, a model can misunderstand the retrieved passages, ignore a relevant detail, or confidently fill in gaps. It also cannot answer a question accurately if the correct passage never made it into the retrieved context.

If I were designing a serious RAG application, I would want to test it with questions whose answers I already knew. I would also include questions the documents cannot answer, to see whether the system admits that limitation. Source references would be a key part of the interface.

I have learned about the approach, but I am not claiming to have built the fully automated portfolio chatbot described in another student’s project. What I take from these lessons is the architecture and the practical questions it raises.

My takeaway: A useful AI assistant needs more than fluent text. It needs relevant context, controlled access to information, and a way to check its answers.