Python client library for the NNext. A ⚡ blazingly fast, 🔍 nearest-neighbors vector search engine for building delightful ML apps
Project description
Here’s our logo (hover to see the title text):
Inline-style:
About
NNext is a
⚡ blazingly fast
📖 source-available [Elastic License 2.0]
🔍 nearest-neighbors vector search engine
Quick Start
Here’s a quick example showcasing how you can create an index, insert vectors/documents and search it on NNext.
Let’s begin by starting the NNext server via Docker:
docker run -p 6040:6040 -v/tmp/data:/data nnext/nnext:latest --data-dir /data --api-key=Hu52dwsas2AdxdE
We have a API Client in python only, but let’s use it for this example.
Install the Python client for NNext:
pip install nnext
We can now initialize the client and create a movies index:
import nnext
from nnext import _and, _eq, _gte, _in
nnclient = nnext.Client({
'api_key': 'Hu52dwsas2AdxdE',
'nodes': [{
'host': 'localhost',
'port': '6040'
}],
'connection_timeout_seconds': 2
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for nnext-0.0.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ad756b438492e2ec82fac2a1d0a1c03f7847c88bb071940746bb13ff543e8e |
|
MD5 | a415fe36fba6298acbdae1d730655eb0 |
|
BLAKE2b-256 | 8521c2780ade45b862870703c01372f862d0aa0e1ea9c276e2d67a23da69660a |