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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| VDBpy-0.1.4.tar.gz | 2.6 kB | Without provenance | Details for VDBpy-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| VDBpy-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for VDBpy-0.1.4-py3-none-any.whl |
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
|
Security for VDBpy 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.