Skip to content

Commit

Permalink
Add Python TrustyAI library and update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruivieira committed Dec 11, 2023
1 parent d602570 commit 7b584d4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
18 changes: 17 additions & 1 deletion docs/modules/ROOT/pages/python-trustyai.adoc
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
= Python TrustyAI
= Python TrustyAI

Python TrustyAI is a Python library for explainable AI. It is a wrapper around the xref:trustyai-core.adoc[TrustyAI core] explainability library.

== Setup

The library is available on PyPi and can be installed with pip.

```bash
pip install trustyai
```

To install additional experimental features, the following command can be used:

```bash
pip install trustyai[extras]
```
4 changes: 3 additions & 1 deletion docs/modules/ROOT/pages/trustyai-core.adoc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
= TrustyAI core
= TrustyAI core

The TrustyAI core is a Java library that provides the core functionality of the TrustyAI framework. It is used by the xref:trustyai-service.adoc[TrustyAI service] and the xref:python-trustyai.adoc[Python TrustyAI library].
6 changes: 5 additions & 1 deletion docs/modules/ROOT/pages/trustyai-operator.adoc
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
= TrustyAI operator
= TrustyAI operator

The TrustyAI Kubernetes Operator aims at simplifying the deployment and management of the xref:trustyai-service.adoc[TrustyAI service] on Kubernetes and OpenShift clusters by watching for custom resources of kind `TrustyAIService` in the `trustyai.opendatahub.io` API group and manages deployments, services, and optionally, routes and `ServiceMonitors` corresponding to these resources.

The operator ensures the service is properly configured, is discoverable by Prometheus for metrics scraping (on both Kubernetes and OpenShift), and is accessible via a `Route` on OpenShift.
10 changes: 10 additions & 0 deletions docs/modules/ROOT/pages/trustyai-service.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
= TrustyAI service

The TrustyAI service is a REST service that provides the integration between XAI and metrics algorithms provided by the xref:trustyai-core.adoc[TrustyAI core] and external models.

[NOTE]
====
Although it can be used as a standalone service, it is designed to be used as part of Open Data Hub, deployed in OpenShift/Kubernetes and managed by the xref:trustyai-operator.adoc[TrustyAI operator].
====

The main functionality of the service is to provide a REST API to calculate metrics and explainability. The service can consume model data (inputs and outputs) for metrics calculation either via a consumer endpoint, or cloud events.

To provide explanations, the service performs inferences to a ModelMesh/KServe-deployed model using gRPC.

== External endpoints

Expand Down

0 comments on commit 7b584d4

Please sign in to comment.