This tool demonstrates the core logic of a Retrieval-Augmented Generation (RAG) system using client-side embeddings and IndexedDB.
Paste a large block of text below and click "Index Text". The text will be split into chunks, embedded, and stored in IndexedDB.
Once the text is indexed, type a query below to retrieve the most relevant chunks.