Skip to content

Conversation

@ruivieira
Copy link
Member

No description provided.

@ruivieira ruivieira self-assigned this Jun 20, 2025
@ruivieira ruivieira added ADR Architecture Decision Record ADR/under-discussion Architecture Decision Record under discussion labels Jun 20, 2025
@ruivieira ruivieira moved this to In Review in TrustyAI planning Jun 20, 2025
@ruivieira ruivieira changed the title feat(adr): Add ADR-0011 for Java to Python service migration feat(adr): Add ADR-0011 (Java to Python service migration) Jun 20, 2025
Copy link

@sheltoncyril sheltoncyril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

- HDF5 for data storage
- Pandas for data manipulation
- Prometheus client for metrics exposure
- MariaDB

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Rui 👋, quick question, does it have to be MariaDB or could we just say any SQL based DB provider?

Copy link
Member Author

@ruivieira ruivieira Jun 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sheltoncyril , good question.
It does not have to be MariaDB exclusively, but for each supported storage backend we would need to write an interface for it. As a starting point, I think we should do MariaDB first, since that's the supported one for the Java service. But in theory, we could have either TrustyAI (or community) interfaces for any storage type in the future.

- Service Metadata (`/info/*`)
- Legacy Endpoints (`/metrics/dir`, `/metrics/spd`)

**Python components:**
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to identify which upstream components provide the implementations that give us parity with the status quo?

Copy link
Member Author

@ruivieira ruivieira Jun 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dahlem good point. IMO the plan is to (later on) replace any algorithm with TrustyAI code/sdk providers.
e.g. we would have in these endpoints something like:

from trustyai.providers import FairnessProvider

# /metrics/spd
spd = FairnessProvider(provider="<your_favourite_library", ...).spd(data)

with the concrete metrics backend selected by the user via configuration, but I agree it's a good idea to have specify which will the providers by default (e.g. scikit-learn, AIF360, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ADR/under-discussion Architecture Decision Record under discussion ADR Architecture Decision Record

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Add ADR for Python TrustyAI service

3 participants