Skip to main content

Distributed Embeddings & Analytics Manager (DIEM) CLI for MariaDB Vector Engine

Project description

DIEM — Distributed Embedding and Analytics Manager

Introduction


DIEM is a CLI tool built using Python and the MariaDB SQL connector. It simplifies CRUD operations on vector embeddings and supports semantic search, cosine similarity, and other distance-based analytics.

The system leverages MariaDB 11.8 GA LTS! features such as Vector Data Type, Spider Engine .Together, these enable high-performance, distributed vector management and analytics.

Prequesites

Mariadb Db version 11.8 GA Lts (greater or 11.8)

Installation

Install using pip

pip install diemcli

Clone git repo

git clone https://github.com/NarmalaSk/DIEM.git

Connect to Mariadb

diem connect
Enter Connection String

Architecture


All database interactions are abstracted through DIEM.py, which translates SQL operations into intuitive CLI commands. This abstraction eliminates the need for manual SQL query handling, making vector data operations faster and more user-friendly.

Distributed System


DIEM automatically distributes vector data across the cluster using the MariaDB Spider Engine, ensuring:

Horizontal scalability

Load-balanced queries

Transparent data retrieval

Using DIEM CLI commands, developers can easily manage data distribution, replication, and query execution across nodes—without manually configuring Spider partitions or routes.

Integration in ML Model Development


DIEM bridges the gap between data storage and machine learning workflows by providing an efficient interface to:

Store and retrieve embeddings generated from ML models.

Perform semantic search for model evaluation and feature comparison.

Leverage MariaDB’s ColumnStore for analytics on large-scale vector datasets.

This makes DIEM an ideal choice for teams developing LLM-based applications, recommendation systems, and semantic similarity engines that need scalable, SQL-native vector management.

CLI


  DIEM - Distributed Embeddings & Analytics Manager CLI

Options:
  connect          Connect to MariaDB and save the connection URI.
  create_table     Create a vector table with given dimensions and metadata.
  insert_vector    Insert a single vector embedding into a table.
  insert_batch     Insert multiple vector embeddings from a CSV file.
  search           Perform similarity search on vector embeddings.
  list_databases   List all databases in the connected MariaDB instance.
  list_tables      List all tables in the connected database.
  get_all          Retrieve all rows from a given table.
  update_vector    Update vector embeddings or metadata using a WHERE clause.
  delete_vectors   Delete vectors from a table with conditions.
  delete_table     Drop a vector table permanently.
  close            Close active database connection and clear config.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diem_cli-0.1.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diem_cli-0.1.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file diem_cli-0.1.4.tar.gz.

File metadata

  • Download URL: diem_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for diem_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 78f51413814a5abf4c6720749bf11dd0f08a8d75979672fe7999666311580dd2
MD5 af98cd697dcbf5d66c0b8e99f8fdde46
BLAKE2b-256 ef6d21bcf453b2e95fef41b482f526f667ca1b742e28e2c969078ad29ea4bae6

See more details on using hashes here.

File details

Details for the file diem_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: diem_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for diem_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fea5692d4651481c13108492c530982ca9eab0c00c235034a86f0da75f27e71
MD5 d824008a368238edb37bdad52e7e245d
BLAKE2b-256 0d811bdf4809626cba380a833aaee806156d9455a4e26315aa98198288bb623f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page