IESE AI Club · Thursday 04 · Cheat sheet

Memory & RAG
on one page.

Six ideas

The deskcontext window The model only sees what is on its desk now. The desk is small.

The notebookmemory What the agent keeps: the partner’s preferences, the committee’s decisions.

The data roomdocuments Too big to put on the desk at once. Pedala’s data room has six files.

RAGretrieval-augmented generation Find the right pages, put them on the desk, answer and point to the page.

Prepare the pagesindexing Cut the files into pages and label them, before anyone asks.

Meaning mapembeddings Pages about similar things sit close together. The question lands near its answer.

Part 1 · Memory: what the agent keeps

Four kinds of memory

  • The desk: what is in front of the model now (working).
  • What happened: Tuesday’s call with the CFO (episodic).
  • Facts: the fund’s ticket size (semantic).
  • How we do things: one-page memos; a skill (procedural).

The memory loop

  • Write → store → recall → update or forget.
  • Someone must decide each step: you, the agent or a rule.
  • Ask before you remember. Make forgetting easy.

Part 2 · RAG: how it finds the right page

RAG turns a closed-book exam into an open-book exam.

Five places RAG can go wrong

  1. Prepare the pagesIndexingKeep “Student plan” and “€25” on one page. Label old price sheets.
  2. Improve the questionPre-retrieval“Cancel” → “end the agreement”.
  3. SearchRetrievalExact words plus meaning. Merge the lists.
  4. Pick the best pagesPost-retrievalPush the noisy FAQ down. Keep only useful lines.
  5. Answer from the pagesGenerationPoint to the page. “Not in the data room” is a correct answer.

Check an answer

  • Does it name the file?
  • Can you find the quoted line?
  • Is it the current version?
  • Does it say “not in the data room” when the answer is missing?

Things people miss

  • The model does not look things up by itself.
  • Rule of thumb: most failures start in the search. Check what reached the desk first.
  • Text the agent reads is data, not instructions.
  • Deleting a chat does not delete the memory made from it.

The desk is small. Memory decides what we keep. RAG brings the right pages.

· Memory stores · Technique map · Back to the guide

Sources: Lewis et al. 2020 (RAG); Gao et al. 2024 (stage names); Sumers et al. 2023 (memory types); Claude and OpenAI memory help pages, checked 29 October 2026. Technique catalogue adapted from all-rag-techniques by Fareed Khan (MIT), via github.com/Shubhamsaboo/all-rag-techniques. Pedala, BiciYa, VoltCell, Fondo Norte and every person in the data room are fictional.