fix larger file read and add faq

This commit is contained in:
yichuan520030910320
2025-07-06 00:48:57 +00:00
parent 368474d036
commit e92deee1e8
3 changed files with 118 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ async def main():
query = "Based on the paper, what are the main techniques LEANN explores to reduce the storage overhead and DLPM explore to achieve Fairness and Efiiciency trade-off?"
# query = "What is the Off-policy training in RL?"
print(f"You: {query}")
chat_response = chat.ask(query, top_k=20, recompute_beighbor_embeddings=True)
chat_response = chat.ask(query, top_k=20, recompute_beighbor_embeddings=True,embedding_model="facebook/contriever")
print(f"Leann: {chat_response}")
if __name__ == "__main__":