dimon: Your Canonical Answer Management Tool
dimon is a command-line interface (CLI) tool for evaluating and managing golden dataset for evaluation your retrival mechnism.
Installation
You can install dimon directly from PyPI:
pip install dimon
Prepare env file
Create a file named .env, or copy it from .env.example.
This file should contain the default configuration values for dimon. Here is an example of what the .env file might look like:
DATABASE_URL=http://localhost:9200
DATABASE_INDEX=your_index
USERNAME=elastic
PASSWORD=your_password_here
DATASET_PATH=/path/to/your/dataset
Replace the values with the actual ones.
Note: Currently, the script only supports ElasticSearch as the vector database. Ensure that your ElasticSearch instance is correctly set up and accessible via the URL provided in the DATABASE_URL parameter. The DATABASE_INDEX should point to the specific index within ElasticSearch that you want to use for storing and querying vectors.
The CLI tool provides three main commands:
evaluate
This command evaluates a specified model on a given dataset. It computes embeddings for each document in the corpus, retrieves the top-k most similar documents for each query, and calculates the Mean Reciprocal Rank (MRR) for evaluation.
dimon evaluate --database_url 'http://localhost:9200' --dataset 'golden_dataset.csv'
diff
This command reads a report file, filters out entries with MRR below a certain threshold
dimon diff --file_name 'mrr_report.csv' --threshold 0.2
merge
This command reads a report file, filters out entries marked as 'Accept', and simulates a merging process.
dimon merge --report_name 'to_confirmed_change.csv'
Metadata
Release files for dimon-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dimon_cli-0.1.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dimon_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / dimon_cli-0.1.0.tar.gz
| Download URL | dimon_cli-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60474221144da8fa61c58cd8736da7d7efea6f6c0b9b42948f5d7c13d09f2b6c
|
|
BLAKE2b-256 checksum How to use checksums |
ca412c2633f3bc4149da9b80dcd60a8a7db201f72db449c8b5ffa5555b08e471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / dimon_cli-0.1.0-py3-none-any.whl
| Download URL | dimon_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc4dc6ff892c1f849737b5ddb900e1cca91636174651b091ed35f2ddd81ab904
|
|
BLAKE2b-256 checksum How to use checksums |
c7d7426da609e0c1724ab439ed4d2f2dc869a02eef290dc39b180d43bb1dd987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|