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.

1017 B
Raw Blame
[build-system]
# Like leann-backend-hnsw: rely on system CMake on PATH (CI images + brew/apt ship it).
# Listing cmake here forces a PyPI fetch during isolated builds and has flaked on
# transient network timeouts (e.g. macOS runners failing to reach pypi.org/simple/cmake/).
requires = ["scikit-build-core>=0.10", "pybind11>=2.12.0", "numpy"]
build-backend = "scikit_build_core.build"

[project]
name = "leann-backend-diskann"
version = "0.3.8"
dependencies = ["leann-core==0.3.8", "numpy", "protobuf>=3.19.0"]

[tool.scikit-build]
# Root CMake forces USE_TCMALLOC=OFF before DiskANN options (see CMakeLists.txt).
cmake.source-dir = "."
# Key: Python package in root directory, paths match exactly
wheel.packages = ["leann_backend_diskann"]
# Use default redirect mode
editable.mode = "redirect"
cmake.build-type = "Release"
build.verbose = true
# Let CMake find packages via Homebrew prefix
cmake.define = {CMAKE_PREFIX_PATH = {env = "CMAKE_PREFIX_PATH"}, OpenMP_ROOT = {env = "OpenMP_ROOT"}, USE_TCMALLOC = "OFF"}