Vector indexer
Project description
RSvIDX
Vector indexing system
Vector indexing
RSvIDX can be used for general purpose vector indexing and similarity search. Applications include:
- Semantic search
- Document deduplication
- Recommendation
- Classification
- Image search
- Reverse image search
- Audio similarity (like Shazam)
- Q&A
Features
- fast and efficient math library
- optimised persistant operations (you now no longer need to explicitly save the index as this is scheduled automatically)
- better in-memory performance compaired to RSvIDX_v3
- no dependencies (new build size is 98% smaller)
- Usable in C with bindings in Python3
- No intermideate C bindings
Example:
Try out https://apps.apple.com/gb/app/headlines-today/id1363257410 on the App Store for a semantic search example.
Installation
(For Python3)
pip3 install rsvidx
Usage
(For Python3)
Create an index You can finetune number of buckets to your use case. Less buckets results in higher accuracy but more items to brute force search. Less buckets results in lower accuracy but fewer items to brute force search.
import rsvidx
file_name = "test.index"
number_of_buckets = 8
dimensions = 4
index = rsvidx.Similarity(file_name, number_of_buckets, dimensions)
Add item to index
add_vector = [1,2,3,4]
add_uid = "1234"
index.add(add_vector, add_uid)
Get items from index
This will get items that are similar to the get vector
get_vector = [1,2,3,4]
results = index.get(get_vector)
Remove items from index
remove_uid = "1234"
index.remove(remove_uid)
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 rsvidx-0.3.0.tar.gz.
File metadata
- Download URL: rsvidx-0.3.0.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f905c9e2ae258b1f018e61d86b5bfe2378d55e85eeefe22bd657cb66f5c3b3ba
|
|
| MD5 |
4963fdcf6caefb8395e1be05636e06a5
|
|
| BLAKE2b-256 |
cc25da07a70f1b7927a0443e92e3760ac4a5aa149d037a61780547c54f74209e
|
File details
Details for the file rsvidx-0.3.0-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: rsvidx-0.3.0-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 32.1 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed4af795f36b6a68093eb042aa41058d7822428e3acbe19e4be2fe8790095f92
|
|
| MD5 |
e8e5d3a61037fc7c2e758d2b12e9709f
|
|
| BLAKE2b-256 |
86bd88dde5258c5004f256da248c53a2fb07b3b28fc3abe82a8be7ecd2b9b3b6
|