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.

Silence E402 for early env setup in __init__.py

aakashdcfdfc1f7fda
diff --git a/packages/leann-core/src/leann/__init__.py b/packages/leann-core/src/leann/__init__.py
index fa75745..a27833d 100644
--- a/packages/leann-core/src/leann/__init__.py
+++ b/packages/leann-core/src/leann/__init__.py
@@ -2,6 +2,8 @@
import os
import platform
+# ruff: noqa: E402 (env vars must be set before importing the rest of the package)
+
# Fix OpenMP/FAISS threading defaults for common platforms
system = platform.system()