Vector Database Lite
Project description
Vector Database Lite (VDBLITE)
Vector Database Lite (like SQLITE but for vector search)
Quickstart
- Install using
pip install vdblite
- Run a test with the following code:
import vdblite
from uuid import uuid4
from pprint import pprint as pp
if __name__ == '__main__':
vdb = vdblite.Vdb()
dimension = 12 # dimensions of each vector
n = 200 # number of vectors
np.random.seed(1)
db_vectors = np.random.random((n, dimension)).astype('float32')
print(db_vectors[0])
for vector in db_vectors:
info = {'vector': vector, 'time': time(), 'uuid': str(uuid4())}
vdb.add(info)
vdb.details()
results = vdb.search(db_vectors[10])
pp(results)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vdblite-0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
vdblite-0.1-py3-none-any.whl
(3.0 kB
view hashes)