Skip to main content

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


Download files

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

Source Distribution

rsvidx-0.3.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

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

rsvidx-0.3.0-cp310-cp310-macosx_10_9_universal2.whl (32.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

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

Hashes for rsvidx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f905c9e2ae258b1f018e61d86b5bfe2378d55e85eeefe22bd657cb66f5c3b3ba
MD5 4963fdcf6caefb8395e1be05636e06a5
BLAKE2b-256 cc25da07a70f1b7927a0443e92e3760ac4a5aa149d037a61780547c54f74209e

See more details on using hashes here.

File details

Details for the file rsvidx-0.3.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rsvidx-0.3.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ed4af795f36b6a68093eb042aa41058d7822428e3acbe19e4be2fe8790095f92
MD5 e8e5d3a61037fc7c2e758d2b12e9709f
BLAKE2b-256 86bd88dde5258c5004f256da248c53a2fb07b3b28fc3abe82a8be7ecd2b9b3b6

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