iam-saiteja/NCM ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python memory library for chat apps that remembers things across sessions and can pull back the most relevant past messages when a new message comes in.
I want it to store user and assistant messages in one local file, load that file back later, and give me a ready to paste context block for my LLM prompt. It should also keep track of basic user persona details, recent mood, and relevant memories around a topic, then slowly forget low value memories over time instead of just keeping everything forever.
Please make it easy to use with a simple Memory object, something like add, add many, add messages, recall, context, save, and load. It should work with plain Python and numpy, and if I have an embedder available, use that for retrieval. If it helps, look up current docs online for any modern embedding or reranking patterns, but keep the project lightweight and local first.
Are you gonna build this?
make sure you review the code using coderabbit