Minimal implementation of a local embedding database
Project description
IotaDB
Installation
pip install iotadb
Usage
from iotadb import IotaDB, Document
docs = [
Document(text="That is a happy dog"),
Document(text="That is a very happy perso"),
Document(text="Today is a sunny day")
]
db = IotaDB()
db.create_collection(name="my_collection", documents=docs)
results = db.search("That is a happy person", return_similarities=True)
for doc, score in results:
print(f"Text: {doc.text}")
print(f"similarity: {score:.3f}\n")
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
iotadb-0.0.9.tar.gz
(5.2 kB
view hashes)
Built Distribution
iotadb-0.0.9-py3-none-any.whl
(6.0 kB
view hashes)