VectorLiteDB
VectorLite is a simple vector database powered by sentence-transformers and hnswlib, designed for efficient storage and search of textual data.
🚀 Quick Install
pip install vectorlite
Usage
Run as api server
-
serve vectorlite -
Navigate to http://localhost:4440/docs
Run integrated in code
Initialization
from vectorlite import VectorLite
vl = VectorLite()
Adding Data
data = ["Sample text 1", "Sample text 2", "Another example"]
vl.create(data)
Read All Data
all_data = vl.read_all()
To limit the number of records returned:
limited_data = vl.read_all(max_items=2)
Read Specific Data by Index
item = vl.read(1)
Update Data by Index
vl.update(1, "Updated sample text 2")
Delete Data by Index
vl.delete(1)
Similarity Search
results = vl.similarity_search("A related sample text", k=3)
Semantic Search
results = vl.semantic_search("A related sample text", k=3)
Release files for vectorlite 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vectorlite-0.4.0.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vectorlite-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / vectorlite-0.4.0.tar.gz
| Download URL | vectorlite-0.4.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4388a645f25aa6bb5f7a8d85405c1b02ecf5eee1690810eba61340c93b41513
|
|
BLAKE2b-256 checksum How to use checksums |
5cc1b70b8279d6ff6df8a48fcd4c019a93f35906417a40312de23cb42c895076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / vectorlite-0.4.0-py3-none-any.whl
| Download URL | vectorlite-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f2efde1050eeb519c2b634ae893ba19e15548597ecc02cd844134eed716cfc6
|
|
BLAKE2b-256 checksum How to use checksums |
25a150edd551d226d398bd9ed0426be64bd6c9ddbf5f2345529deded73a378f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|