English

MeMemo: On-device Retrieval Augmentation for Private and Personalized Text Generation

Information Retrieval 2024-07-03 v1 Artificial Intelligence Human-Computer Interaction Machine Learning

Abstract

Retrieval-augmented text generation (RAG) addresses the common limitations of large language models (LLMs), such as hallucination, by retrieving information from an updatable external knowledge base. However, existing approaches often require dedicated backend servers for data storage and retrieval, thereby limiting their applicability in use cases that require strict data privacy, such as personal finance, education, and medicine. To address the pressing need for client-side dense retrieval, we introduce MeMemo, the first open-source JavaScript toolkit that adapts the state-of-the-art approximate nearest neighbor search technique HNSW to browser environments. Developed with modern and native Web technologies, such as IndexedDB and Web Workers, our toolkit leverages client-side hardware capabilities to enable researchers and developers to efficiently search through millions of high-dimensional vectors in the browser. MeMemo enables exciting new design and research opportunities, such as private and personalized content creation and interactive prototyping, as demonstrated in our example application RAG Playground. Reflecting on our work, we discuss the opportunities and challenges for on-device dense retrieval. MeMemo is available at https://github.com/poloclub/mememo.

Keywords

Cite

@article{arxiv.2407.01972,
  title  = {MeMemo: On-device Retrieval Augmentation for Private and Personalized Text Generation},
  author = {Zijie J. Wang and Duen Horng Chau},
  journal= {arXiv preprint arXiv:2407.01972},
  year   = {2024}
}

Comments

Accepted to SIGIR 2024. 6 pages, 2 figures. For a live demo, visit https://poloclub.github.io/mememo/. Code is open-source at https://github.com/poloclub/mememo

R2 v1 2026-06-28T17:26:01.167Z