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(browser): honor explicit Chrome profile path (#400)

kv864c2b159518208
diff --git a/apps/browser_rag.py b/apps/browser_rag.py
index 00bb3f5..589b827 100644
--- a/apps/browser_rag.py
+++ b/apps/browser_rag.py
@@ -89,17 +89,12 @@ class BrowserRAG(BaseRAGExample):
async def load_data(self, args) -> list[dict[str, Any]]:
"""Load browser history and convert to text chunks."""
# Determine Chrome profiles
- if args.chrome_profile and not args.auto_find_profiles:
+ if args.chrome_profile:
profile_dirs = [Path(args.chrome_profile)]
else:
print("Auto-detecting Chrome profiles...")
profile_dirs = self._find_chrome_profiles()
- # If specific profile given, filter to just that one
- if args.chrome_profile:
- profile_path = Path(args.chrome_profile)
- profile_dirs = [p for p in profile_dirs if p == profile_path]
-
if not profile_dirs:
print("No Chrome profiles found!")
print("Please specify --chrome-profile manually")