Run with Docker

You can locally deploy the open-source Epsilla vector database by using its Docker image.

1. Installation

To run the pre-built Epsilla docker image on your machine, make sure Docker is installed on your system. Then download image from Dockerhub.

docker pull epsilla/vectordb

Start the docker as the backend service

docker run --pull=always -d -p 8888:8888 epsilla/vectordb

Your Epsilla service is up and running. You can use REST API to interact with Epsilla, or install a Python/JavaScript client.

pip3 install --upgrade pyepsilla

2. Connect to Epsilla server

from pyepsilla import vectordb

## connect to vectordb
db = vectordb.Client(
  host='localhost',
  port='8888'
)

Hint: if you are connecting to a secure server, use protocol parameter:

db = vectordb.Client(
  protocol='https',
  host=...
)

3. Create or load a database

4. Create a table

5. Insert new records

You can insert multiple records in a batch.

Output

7. Drop a table

5. Unload a database

Offload a database that is not in use to release memory (the database files are still on disk).

Next steps

Epsilla is designed to be simple enough to get started. Refer to Vector Database for more flexibility and options on each API.

We are tirelessly working to enhance Epsilla with more features. Please consult our Roadmap to glimpse into the future developments.

Last updated