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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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