[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.
Python aifaissgpt-osslangchainllama-indexllmlocalstorageoffline-firstollamaprivacypythonragretrieval-augmented-generationvector-databasevector-searchvectors
fix(cli): replace ctypes.CDLL(None) with sys.stdout.flush() for Windows compatibility (#310) (#312)
Zhifei Li04c6b15a301d
diff --git a/packages/leann-core/src/leann/cli.py b/packages/leann-core/src/leann/cli.pyindex 9f8280f..6e1e133 100644--- a/packages/leann-core/src/leann/cli.py+++ b/packages/leann-core/src/leann/cli.py@@ -2669,10 +2669,7 @@ Examples:)finally:if json_mode:- import ctypes-- libc = ctypes.CDLL(None)- libc.fflush(None)+ sys.stdout.flush()os.dup2(saved_fd, 1)os.close(saved_fd)