A package to locally shard vector data to conserve memory in memory-limited environments
Project description
LVDB
This is a vector sharding package leveraging Python generators and built-in NumPy text loading to conserve memory within an environment with resource constraints. It aims to reduce memory overhead through saving and loading from shard files, in essence trading runtime for memory.
Usage:
- The entry point for this package is the LVInstance class. This can be imported from lvdb as LVInstance.
- An instance of this class should be initialized and data can be inserted into this instance.
- To use with GPU resources, set the device to gpu.
- To enable in-memory caching, set a time-to-live value.
- Implement an interface for either a shard or the entire store, implement the metaclass from lvdb.interfaces. This enables you to use customize external storage options like S3.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lvdb-2.1.2.tar.gz.
File metadata
- Download URL: lvdb-2.1.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
552eab2d37b750caccd349fef86df8043cb4c478b01a5de514b1b076dc7317a3
|
|
| MD5 |
76e72d52364bab576ae7e27f8163eba2
|
|
| BLAKE2b-256 |
131d619faca1d789b0f0366eb96e9c62134c0bbc25489488c9b2333cca033240
|
File details
Details for the file lvdb-2.1.2-py3-none-any.whl.
File metadata
- Download URL: lvdb-2.1.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04af934d129e2901d2b35e7383761a7ae6e9811840b773dff88df95af6069d89
|
|
| MD5 |
b8733ef14e090112075df03a82e6d522
|
|
| BLAKE2b-256 |
80dc5be9ccbcd6a9957ab072af36365d4030eefd8f3b3a2e773a7ea6d2fec2c8
|