跳转到主要内容

DiskANN Python扩展模块

项目描述

diskannpy

DiskANN Paper DiskANN Paper DiskANN Paper DiskANN Main PyPI version Downloads shield License: MIT

安装

发布到PyPI的软件包将始终使用最新的numpy主次版本(目前为1.25)构建。

版本1.19-1.25的conda发行版将在未来的工作中完成。在此期间,您可以随意克隆此存储库并自行构建。

本地构建说明

请参阅项目README以获取系统依赖项和需求。

在确保您已遵循构建项目库和可执行文件的说明后,您将可以使用以下附加说明构建diskannpy

更改Numpy版本

在DiskANN的根目录中有一个文件pyproject.toml。您需要编辑[build-system.requires]部分以及[project.dependencies]部分中的numpy版本。版本号必须匹配。

Linux

python3.11 -m venv venv # versions from python3.9 and up should work
source venv/bin/activate
pip install build
python -m build

Windows

py -3.11 -m venv venv # versions from python3.9 and up should work
venv\Scripts\Activate.ps1
pip install build
python -m build

构建的wheel将放置在DiskANN根目录下的dist目录中。使用pip install dist/<wheel名称>.whl进行安装

引用

请在您的作品中引用此软件,如下所示

@misc{diskann-github,
   author = {Simhadri, Harsha Vardhan and Krishnaswamy, Ravishankar and Srinivasa, Gopal and Subramanya, Suhas Jayaram and Antonijevic, Andrija and Pryce, Dax and Kaczynski, David and Williams, Shane and Gollapudi, Siddarth and Sivashankar, Varun and Karia, Neel and Singh, Aditi and Jaiswal, Shikhar and Mahapatro, Neelam and Adams, Philip and Tower, Bryan and Patel, Yash}},
   title = {{DiskANN: Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search}},
   url = {https://github.com/Microsoft/DiskANN},
   version = {0.6.1},
   year = {2023}
}

支持者

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误日志StatusPageStatusPage状态页面