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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ANNZOO-2021.2.5.19.21.41.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ANNZOO-2021.2.5.19.21.41-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ANNZOO-2021.2.5.19.21.41.tar.gz.

File metadata

  • Download URL: ANNZOO-2021.2.5.19.21.41.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ANNZOO-2021.2.5.19.21.41.tar.gz
Algorithm Hash digest
SHA256 81330c6a113fe77777e95855aa381c1eaa4c8b777d3c7cae4262748f0426753d
MD5 996ba297591975989041a74a92a8a0df
BLAKE2b-256 fbff4514bfd476166502c0dd033633694f92bde2be0a6280609acd977b8a0577

See more details on using hashes here.

File details

Details for the file ANNZOO-2021.2.5.19.21.41-py3-none-any.whl.

File metadata

  • Download URL: ANNZOO-2021.2.5.19.21.41-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ANNZOO-2021.2.5.19.21.41-py3-none-any.whl
Algorithm Hash digest
SHA256 540998f05c48fa5493a6ab8577695fe15af28c1b2538142e14f89858200a05be
MD5 ffbdd786489b7b5b9f0197f1e7845300
BLAKE2b-256 d02e65d11fbec3c3fdaa8f045ba18473328744478d0d59235a65fa256cc64fac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2021.2.5.19.21.41 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page