fix: Restore embedding-mode parameter to all examples

- All examples now have --embedding-mode parameter (unified interface benefit)
- Default is 'sentence-transformers' (consistent with original behavior)
- Users can now use OpenAI or MLX embeddings with any data source
- Maintains functional equivalence with original scripts
This commit is contained in:
Andy Lee
2025-07-29 13:33:40 -07:00
parent ff1b622bdd
commit ddc789b231
7 changed files with 25 additions and 36 deletions

View File

@@ -21,7 +21,7 @@ class BrowserRAG(BaseRAGExample):
super().__init__(
name="Browser History",
description="Process and query Chrome browser history with LEANN",
default_index_name="google_history_index", # Match original: "./google_history_index",
default_index_name="google_history_index",
)
def _add_specific_arguments(self, parser):