fix mem compare

This commit is contained in:
yichuan520030910320
2025-07-14 22:55:10 -07:00
parent f2feccdbd0
commit e5a9ca8787
6 changed files with 147 additions and 12 deletions

View File

@@ -199,7 +199,7 @@ async def query_leann_index(index_path: str, query: str):
query: The query string
"""
print(f"\n[PHASE 2] Starting Leann chat session...")
chat = LeannChat(index_path=index_path, llm_config={"type": "hf", "model": "Qwen/Qwen3-0.6B"})
chat = LeannChat(index_path=index_path)
print(f"You: {query}")
chat_response = chat.ask(
@@ -270,8 +270,6 @@ async def main():
# Example queries
queries = [
"What websites did I visit about machine learning?",
"Show me my recent shopping history",
"What news sites did I visit this week?",
"Find my search history about programming"
]