# aathish14/enterprise-llm-trust-framework architecture

> Architecture diagram of the GitHub repository aathish14/enterprise-llm-trust-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aathish14/enterprise-llm-trust-framework
- Repository: https://github.com/aathish14/enterprise-llm-trust-framework

## Overview

The Enterprise LLM Trust Framework evaluates LLM responses, computes trust scores, benchmarks models, tracks operational results, and presents them in a dashboard. Its principal workflow runs through generation, multiple evaluation dimensions, optional critique/refinement, and trust scoring; comparative benchmarking invokes that workflow for configured prompts and models. The graph preserves the documented evaluation dimensions and monitoring capabilities. Some connections are based on README descriptions because their implementations were not excerpted; unsampled wiring is otherwise omitted.

Main entry points: [`src/core/pipeline.py`](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/core/pipeline.py) (Evaluation pipeline), [`src/benchmarking/benchmark_engine.py`](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/benchmarking/benchmark_engine.py) (Comparative benchmarks), [`src/observation/mlflow_integration.py`](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/mlflow_integration.py) (MLflow integration), [`src/observation/experiment_tracking.py`](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/experiment_tracking.py) (Experiment tracking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_evaluation["Evaluation workflow"]
  node_pipeline["Evaluation pipeline<br/>[pipeline.py]"]
  node_factual["Factual correctness"]
  node_hallucination["Hallucination detection"]
  node_similarity["Semantic similarity"]
  node_quality["Response quality"]
  node_safety["Toxicity and safety<br/>[toxicity_safety.py]"]
  node_trust["Trust scoring<br/>[trust_scoring.py]"]
  node_benchmark["Comparative benchmarks"]
end

subgraph group_models["Model integrations"]
  node_adapters["LLM adapters"]
  node_providers["LLM providers"]
end

subgraph group_observability["Tracking and monitoring"]
  node_experiments["Experiment tracking"]
  node_mlflow_tracker["MLflow integration"]
  node_mlflow[("MLflow tracking store")]
  node_metrics["Metrics logger<br/>[metrics_logger.py]"]
  node_latency["Latency monitoring<br/>[latency_monitor.py]"]
  node_failures["Failure tracking<br/>[failure_tracker.py]"]
end

subgraph group_interface["Dashboard"]
  node_dashboard["Dashboard app<br/>[app.py]"]
  node_analytics["Dashboard analytics<br/>[analytics.py]"]
  node_visualizations["Result visualizations<br/>[visualizations.py]"]
end

node_user(("Framework user"))

node_user -->|"runs evaluations"| node_pipeline
node_pipeline -->|"generates responses"| node_adapters
node_adapters -->|"calls models"| node_providers
node_pipeline -->|"evaluates responses"| node_factual
node_pipeline -->|"evaluates responses"| node_hallucination
node_pipeline -->|"evaluates responses"| node_similarity
node_pipeline -->|"evaluates responses"| node_quality
node_pipeline -->|"evaluates responses"| node_safety
node_pipeline -->|"computes scores"| node_trust
node_benchmark -->|"runs evaluations"| node_pipeline
node_benchmark -->|"logs run metrics"| node_experiments
node_benchmark -->|"logs benchmark metrics"| node_mlflow_tracker
node_experiments -->|"records experiment data"| node_mlflow_tracker
node_mlflow_tracker -->|"writes tracking data"| node_mlflow
node_metrics -->|"logs run metrics"| node_experiments
node_dashboard -->|"searches runs"| node_mlflow_tracker
node_user -->|"configures comparisons"| node_benchmark

click node_pipeline "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/core/pipeline.py"
click node_factual "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/factual_correctness.py"
click node_hallucination "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/hallucination_detection.py"
click node_similarity "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/semantic_similarity.py"
click node_quality "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/response_quality.py"
click node_safety "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/toxicity_safety.py"
click node_trust "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/core/trust_scoring.py"
click node_benchmark "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/benchmarking/benchmark_engine.py"
click node_adapters "https://github.com/aathish14/enterprise-llm-trust-framework/tree/master/src/llm"
click node_experiments "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/experiment_tracking.py"
click node_mlflow_tracker "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/mlflow_integration.py"
click node_metrics "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/metrics_logger.py"
click node_latency "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/latency_monitor.py"
click node_failures "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/failure_tracker.py"
click node_dashboard "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/app.py"
click node_analytics "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/analytics.py"
click node_visualizations "https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/visualizations.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pipeline,node_factual,node_hallucination,node_similarity,node_quality,node_safety,node_trust,node_benchmark,node_user toneBlue
class node_adapters,node_providers toneAmber
class node_experiments,node_mlflow_tracker,node_mlflow,node_metrics,node_latency,node_failures toneMint
class node_dashboard,node_analytics,node_visualizations toneRose
```

## Components

### Evaluation workflow

- [Evaluation pipeline](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/core/pipeline.py): `src/core/pipeline.py`
- [Factual correctness](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/factual_correctness.py): `src/evaluation/factual_correctness.py`
- [Hallucination detection](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/hallucination_detection.py): `src/evaluation/hallucination_detection.py`
- [Semantic similarity](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/semantic_similarity.py): `src/evaluation/semantic_similarity.py`
- [Response quality](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/response_quality.py): `src/evaluation/response_quality.py`
- [Toxicity and safety](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/evaluation/toxicity_safety.py): `src/evaluation/toxicity_safety.py`
- [Trust scoring](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/core/trust_scoring.py): `src/core/trust_scoring.py`
- [Comparative benchmarks](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/benchmarking/benchmark_engine.py): `src/benchmarking/benchmark_engine.py`

### Model integrations

- [LLM adapters](https://github.com/aathish14/enterprise-llm-trust-framework/tree/master/src/llm): `src/llm`
- **LLM providers**

### Tracking and monitoring

- [Experiment tracking](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/experiment_tracking.py): `src/observation/experiment_tracking.py`
- [MLflow integration](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/mlflow_integration.py): `src/observation/mlflow_integration.py`
- **MLflow tracking store**
- [Metrics logger](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/metrics_logger.py): `src/observation/metrics_logger.py`
- [Latency monitoring](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/latency_monitor.py): `src/observation/latency_monitor.py`
- [Failure tracking](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/observation/failure_tracker.py): `src/observation/failure_tracker.py`

### Dashboard

- [Dashboard app](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/app.py): `src/dashboard/app.py`
- [Dashboard analytics](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/analytics.py): `src/dashboard/analytics.py`
- [Result visualizations](https://github.com/aathish14/enterprise-llm-trust-framework/blob/master/src/dashboard/visualizations.py): `src/dashboard/visualizations.py`

### Other components

- **Framework user**

## Connections

- Framework user → Evaluation pipeline: runs evaluations (evidence: `README.md`)
- Evaluation pipeline → LLM adapters: generates responses (evidence: `src/core/pipeline.py`)
- LLM adapters → LLM providers: calls models (evidence: `README.md`)
- Evaluation pipeline → Factual correctness: evaluates responses (evidence: `README.md`)
- Evaluation pipeline → Hallucination detection: evaluates responses (evidence: `README.md`)
- Evaluation pipeline → Semantic similarity: evaluates responses (evidence: `README.md`)
- Evaluation pipeline → Response quality: evaluates responses (evidence: `README.md`)
- Evaluation pipeline → Toxicity and safety: evaluates responses (evidence: `README.md`)
- Evaluation pipeline → Trust scoring: computes scores (evidence: `README.md`)
- Comparative benchmarks → Evaluation pipeline: runs evaluations (evidence: `src/benchmarking/benchmark_engine.py`)
- Comparative benchmarks → Experiment tracking: logs run metrics (evidence: `src/benchmarking/benchmark_engine.py`)
- Comparative benchmarks → MLflow integration: logs benchmark metrics (evidence: `src/benchmarking/benchmark_engine.py`)
- Experiment tracking → MLflow integration: records experiment data (evidence: `src/observation/experiment_tracking.py`)
- MLflow integration → MLflow tracking store: writes tracking data (evidence: `src/observation/mlflow_integration.py`)
- Metrics logger → Experiment tracking: logs run metrics (evidence: `src/observation/metrics_logger.py`)
- Dashboard app → MLflow integration: searches runs (evidence: `src/dashboard/app.py`)
- Framework user → Comparative benchmarks: configures comparisons (evidence: `README.md`)
