A pattern for building personal knowledge bases using LLMs based on Andrej Karpathy's celebrated idea file. I have taken the liberty of drastically editing it down to what is truly essential for my purposes and cost-effective as an LLM input. As such, I also changed POV from that of Karpathy (speaking to me) to my own (addressing an AI agent).
Additionally, I have borrowed from a few other sources: