SQLite based queryable python indexes for dicts and lists
Project description
LiteIndex
Embedded, thread and process safe, disk backed, easy to use, query-able, fast Index implementations
pip install --upgrade liteindex
DefinedIndex
- Documentation | Detailed example | Benchmarks
- fixed schema index i.e: schema has to be defined before hand
number
,boolean
,datetime
,string
,compressed_string
,blob
,json
,normalized_embedding
, andother
types are supported andcan be queried upon
- can store any python objects with varying levels of query-ability
Query language is subset of mongodb's
. All queries are documented- seamless, very fast nearest neighbor search with filtering. a practical wrapper of faiss + sqlite. Approximate nearest neighbor search is not supported. Intended for few million vector search
- works across threads, processes seamlessly
- handy features like search and update in single query, batch operation support for update, search, del, pop etc ..
- in-place math operations support wherever applicable i.e: += etc can be done in single query optimally
- compression is supported natively and optional custom compression dictionaries can be built automatically
KVIndex
- Documentation | Detailed example | Benchmarks
- simple key value store, can store any python objects, can be queried for equality, sorting, max, min etc wherever applicable
- in-place math operations support wherever applicable i.e: += etc can be done in single query optimally
- has a python dict like interface
- batch operation support for update, search, del, pop etc ..
- ultra fast, works across threads, processes seamlessly
- Eviction policies supported:
LRU
,LFU
,any
and age based invalidation and size, count based eviction
function_cache
- Documentation | Detailed example | Benchmarks
- based on KVIndex, can be used to cache function calls of any type
- batch inference caching friendly
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
liteindex-0.0.2.dev53.tar.gz
(23.0 kB
view hashes)
Built Distribution
Close
Hashes for liteindex-0.0.2.dev53-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af01dcdce10c9f64650fa5270493cc1853badee207f2c5f0a82ff15b81bafab1 |
|
MD5 | 383d2ef7166d0041e4c22ff337bc9e7a |
|
BLAKE2b-256 | b33e8dff85d1cf0856e69ad2d5c2847c6680f8f21b981d2ee1c8849603191286 |