Binance Interview Question

How do you design the memory module of a RAG system