I’m curious to learn how the notepads feature is implemented

For example, asking what this function does, and how to recall the requirement description of related functions from relevant documents (not just code translation).

I think it is not simple RAG. I’m not trying to copy cursor, just have the same scene. But I don’t know how to get started, hoping for some basic guidance.

Thanks