Skip to content

armgit / LEANN

Public Imported from GitHub
0

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

fix bug introduce in #58

yichuan5200309103204e5b73ce7bf1
diff --git a/apps/browser_rag.py b/apps/browser_rag.py
index d115510..6d21964 100644
--- a/apps/browser_rag.py
+++ b/apps/browser_rag.py
@@ -10,7 +10,8 @@ from pathlib import Path
# Add parent directory to path for imports
sys.path.insert(0, str(Path(__file__).parent))
-from base_rag_example import BaseRAGExample, create_text_chunks
+from base_rag_example import BaseRAGExample
+from chunking import create_text_chunks
from .history_data.history import ChromeHistoryReader
diff --git a/apps/email_rag.py b/apps/email_rag.py
index 75a6cc8..ec87bb1 100644
--- a/apps/email_rag.py
+++ b/apps/email_rag.py
@@ -9,7 +9,8 @@ from pathlib import Path
# Add parent directory to path for imports
sys.path.insert(0, str(Path(__file__).parent))
-from base_rag_example import BaseRAGExample, create_text_chunks
+from base_rag_example import BaseRAGExample
+from chunking import create_text_chunks
from .email_data.LEANN_email_reader import EmlxReader