An open API service indexing awesome lists of open source software.

https://github.com/yuanjie-ai/tql-ann

ANN: Faiss
https://github.com/yuanjie-ai/tql-ann

Last synced: 2 months ago
JSON representation

ANN: Faiss

Awesome Lists containing this project

README

        

:rocket: ANN :facepunch:

---

# Install
`pip install fast-ann`

# Usage
```python
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)
```