.
Project description
OmniVector provides a simple interface to vector databases. We integrate the main functionalities of different vector dbs, generally indexing and searching, into a single interface. This allows us to easily switch between different vector dbs.
db = WeaviateDB() # or PineconeDB() or LanceDB()
encoder = SentenceTransformerEmbedder("paraphrase-MiniLM-L6-v2", device="cpu")
docs = ["the cat is on the table", "the table is on the cat", "the dog is mining bitcoins"]
ids = list(range(4, len(docs) + 4))
embeddings = encoder.embed(docs)
db.create_index(ids, docs, embeddings)
search_vector = encoder.embed(["the dog is mining bitcoins"])[0]
print(db.vector_search(search_vector, k=1))
Free software: MIT license
Documentation: https://omnivector.readthedocs.io.
Features
The AbstractDB requires setting OMNIVECTOR_CONFIG env variable to a config file (an example is in config.yaml)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
File details
Details for the file omnivector-0.1.1.tar.gz
.
File metadata
- Download URL: omnivector-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe78eccd50e0dccf46238d199a34d7e97fb36020b2d63d86ada6a64425d50b7 |
|
MD5 | 876367ba1d004208e5113d531b1a018c |
|
BLAKE2b-256 | d6e48810cf87eadd6e12c52d98ddcd628ce497311fcfcc92338e895cfc1f88be |
File details
Details for the file omnivector-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: omnivector-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0920abbe959b5d0a6e43d8e5df9bdcd18f594a712e577c4a9946c183856734e9 |
|
MD5 | 78349654a9f81edeaa1fffc28b6fb3ba |
|
BLAKE2b-256 | da6a196258004cab303ed5a3fe010457e03c687e4c98b6a108a4cd608edb8cff |