Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ADB website display scripts
docker pull ammaorg/aquiladb:latest
docker run -d -i -p 50051:50051 -t ammaorg/aquiladb:latest
# import AquilaDB client
from aquiladb import AquilaClient as acl
# create DB instance
db = acl('localhost', 50051)
# convert a sample document
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
# add document to AquilaDB
db.addDocuments([sample])
# import AquilaDB client
from aquiladb import AquilaClient as acl
# create DB instance
db = acl('localhost', 50051)
# convert a sample document
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
# add document to AquilaDB
db.addDocuments([sample])
# import AquilaDB client
from aquiladb import AquilaClient as acl
# create DB instance
db = acl('localhost', 50051)
# convert a sample document
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
# add document to AquilaDB
db.addDocuments([sample])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment