Hoa Kỳpoloclub/mememo
A JavaScript library that brings vector search and RAG to your browser!
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#2 Repository của tuần
#2 Repository của tuần
#2 Repository của tháng
🧠 MeMemo — Vector search và RAG chạy trực tiếp trên trình duyệt
Thư viện JavaScript biến trình duyệt thành công cụ tìm kiếm vector và RAG mà không cần server.
MeMemo là thư viện JavaScript do Jay Wang và Polo Chau phát triển, đưa kỹ thuật HNSW (Hierarchical Navigable Small World) — phương pháp approximate nearest neighbor search hàng đầu hiện nay — vào môi trường trình duyệt. Thư viện sử dụng IndexedDB và Web Workers để tận dụng phần cứng client, cho phép tìm kiếm qua hàng triệu vector nhiều chiều ngay trên trình duyệt mà không cần gọi API bên ngoài. Điều này mở ra khả năng xây dựng ứng dụng RAG riêng tư, cá nhân hóa nội dung và prototype tương tác hoàn toàn ở phía client.
✨ Điểm nổi bật
- HNSW trên trình duyệt: Triển khai thuật toán HNSW tối ưu cho tìm kiếm vector nhanh trong browser.
- IndexedDB + Web Workers: Lưu trữ và xử lý song song native, không phụ thuộc backend.
- Tìm kiếm hàng triệu vector: Có thể index và query hàng triệu embedding nhiều chiều ngay trên client.
- Hỗ trợ Node.js và browser: Chạy được cả hai môi trường, cài đặt qua
npm install mememo. - API đơn giản: Chỉ cần
bulkInsertđể thêm dữ liệu vàqueryđể tìm k-nearest neighbors. - RAG Playground minh họa: Ví dụ ứng dụng với ML Paper Reviewer, Prompt Enhancer, Responsible AI Assistant.
- Đã công bố nghiên cứu: Bài báo SIGIR'24 (arXiv:2407.01972) chứng minh hiệu năng on-device retrieval.
- MIT License: Hoàn toàn mã nguồn mở, tự do sử dụng và sửa đổi.
💡 Vì sao đáng chú ý
Thông thường, RAG và vector search đòi hỏi server hoặc cloud infrastructure để xử lý. MeMemo đưa toàn bộ pipeline này về phía client, nghĩa là dữ liệu không cần rời khỏi trình duyệt — giải quyết vấn đề riêng tư và cá nhân hóa mà vẫn giữ hiệu năng cao nhờ HNSW và Web Workers. Với ví dụ RAG Playground cho thấy ba ứng dụng thực tế (reviewer paper, prompt enhancer, AI assistant có trách nhiệm), MeMemo chứng minh rằng tìm kiếm vector on-device không chỉ khả thi mà còn đủ mạnh cho các trường hợp sử dụng thực tế.
#VectorSearch #RAG #BrowserAI #HNSW #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience
Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.
Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search
Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database.
A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...