Skip to main content

VDBpy

A simple vector database allows difference search methods (consine similarity and euclidean distance ect.)

Usage

View example.py for details

from VDBpy.indexing import VectorIndex
from VDBpy.query import VectorQuery

# Create a new vector index
index = VectorIndex()

# Add some vectors to the index
index.add_vector([1, 2, 3], 'vector1')
index.add_vector([4, 5, 6], 'vector2')

# Create a new vector query
query = VectorQuery(index)

# Execute the query
results = query.execute([2, 2, 2], k=2)
'''
# Execute the query using cosine similarity
results = query.execute([2,2,2], k=2, metric='cosine')
# Execute the query using Manhattan distance
results = query.execute([2,2,2], k=2, metric='manhattan')
# Execute the query using Jaccard similarity
results = query.execute([2,2,2], k=2, metric='jaccard')
'''

# Print the results
for id, similarity in results:
  print(f"ID: {id}, Similarity: {similarity}")

Installation

pip install VDBpy

Metadata

Release files for VDBpy 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for VDBpy 0.1.4
File Size Uploaded
VDBpy-0.1.4.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for VDBpy 0.1.4
File Interpreter ABI Platform
VDBpy-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / VDBpy-0.1.4.tar.gz

Download URL VDBpy-0.1.4.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cf8f2440e839ebdd4a96419288e09e166f7783d94f7cbda090aaed466c35663f
BLAKE2b-256 checksum
How to use checksums
4b791326135ac143e5410ca3fb79111e6e7677cfd52d4cc2febd82eff85cd0e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / VDBpy-0.1.4-py3-none-any.whl

Download URL VDBpy-0.1.4-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96135696274cdb976b81f8837c89db8331b94c8e63a7e8078318286faccecca2
BLAKE2b-256 checksum
How to use checksums
571251556c3cab58050645f6f6ad8d3c7b1d352b38e1a93c20fde200b30c5063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page