Skip to main content

:rocket: ANN :facepunch:


Install

pip install fast-ann

Usage

from ann import ANN
import numpy as np

data = np.random.random((1000, 128)).astype('float32')

ann = ANN()
ann.train(data, index_factory='IVF4000, Flat', noramlize=True)

dis, idx = ann.search(data[:10])

print(dis)
print(idx)

milvus镜像

yum -y install python3
# ln -sf /usr/bin/python3 /usr/bin/python
# ln -sf /usr/bin/pip3 /usr/bin/pip
pip3 install -U --no-cache-dir -i https://mirror.baidu.com/pypi/simple pip meutils pymilvus

rm -rf /tmp/*
rm -rf /root/.cache/pip*


  • faiss不同量级对应的训练时间及内存测试

  • 压缩方式测试

  • 四种组合:默认是查向量返回 distance与index

    • id => id/vector
    • vector => id/vector
    • push场景需要 docid => title_vector => docid
  • 线上服务

    • id2word
    • id2vector

Metadata

Release files for ANNZOO 2021.2.5.19.21.41

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ANNZOO 2021.2.5.19.21.41
File Size Uploaded
ANNZOO-2021.2.5.19.21.41.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ANNZOO 2021.2.5.19.21.41
File Interpreter ABI Platform
ANNZOO-2021.2.5.19.21.41-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / ANNZOO-2021.2.5.19.21.41.tar.gz

Download URL ANNZOO-2021.2.5.19.21.41.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
81330c6a113fe77777e95855aa381c1eaa4c8b777d3c7cae4262748f0426753d
BLAKE2b-256 checksum
How to use checksums
fbff4514bfd476166502c0dd033633694f92bde2be0a6280609acd977b8a0577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release files / ANNZOO-2021.2.5.19.21.41-py3-none-any.whl

Download URL ANNZOO-2021.2.5.19.21.41-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
540998f05c48fa5493a6ab8577695fe15af28c1b2538142e14f89858200a05be
BLAKE2b-256 checksum
How to use checksums
d02e65d11fbec3c3fdaa8f045ba18473328744478d0d59235a65fa256cc64fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

2021.2.5.19.21.41 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page