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.

default main cli to openai

yichuan5200309103202ebb29de657d
diff --git a/examples/main_cli_example.py b/examples/main_cli_example.py
index 9b093d2..4475bb8 100644
--- a/examples/main_cli_example.py
+++ b/examples/main_cli_example.py
@@ -58,8 +58,9 @@ async def main(args):
print(f"\n[PHASE 2] Starting Leann chat session...")
- # llm_config = {"type": "hf", "model": "Qwen/Qwen3-4B"}
+ llm_config = {"type": "hf", "model": "Qwen/Qwen3-4B"}
llm_config = {"type": "ollama", "model": "qwen3:8b"}
+ llm_config = {"type": "openai", "model": "gpt-4o"}
chat = LeannChat(index_path=INDEX_PATH, llm_config=llm_config)