Skip to main content

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


Download files

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

Source Distribution

lvdb-2.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

lvdb-2.1.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for lvdb-2.1.2.tar.gz
Algorithm Hash digest
SHA256 552eab2d37b750caccd349fef86df8043cb4c478b01a5de514b1b076dc7317a3
MD5 76e72d52364bab576ae7e27f8163eba2
BLAKE2b-256 131d619faca1d789b0f0366eb96e9c62134c0bbc25489488c9b2333cca033240

See more details on using hashes here.

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

Hashes for lvdb-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04af934d129e2901d2b35e7383761a7ae6e9811840b773dff88df95af6069d89
MD5 b8733ef14e090112075df03a82e6d522
BLAKE2b-256 80dc5be9ccbcd6a9957ab072af36365d4030eefd8f3b3a2e773a7ea6d2fec2c8

See more details on using hashes here.

Supported by

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