salus-rai/Salus

Responsible AI toolkit provides a set of APIs to integrate safety, security, privacy, explainability, fairness, and hallucination detection into AI solutions, ensuring trustworthiness and transparency.

8

stars

86

commits

Python

primary language

Dec 2, 2025

updated

README

Salus

salus provides a set of APIs to integrate safety, security, privacy, explainability, fairness, and hallucination detection into AI solutions, ensuring trustworthiness and transparency.

Repositories and Installation Instructions

The following table lists the modules of the salus. Installation instructions for each module can be found in the corresponding README file within the module's directory.

#ModuleFunctionalitiesRepository name(s)
1ModerationLayer APIs
(Comprehensive suite of Safety, Privacy, Explainability, Fairness and Hallucination tenets)
To regulate the content of prompts and responses generated by LLMsresponsible-ai-moderationlayer,
responsible-ai-moderationModel
2Explainability APIs**Get Explainability to LLM responses,
Global and local explainability for Regression, Classification and Timeseries Models
responsible-ai-llm-explain,
responsible-ai-explainability,
Model Details,
Reporting
3Fairness & Bias APICheck Fairness and detect Biases associated with LLM prompts and responses and also for traditional ML modelsresponsible-ai-fairness
4Hallucination APIDetect and quantify Hallucination in LLM responses under RAG scenariosresponsible-ai-hallucination
5Privacy APIDetect and anonymize or encrypt or hilight PII information in prompts for LLMs or in its responsesresponsible-ai-privacy
6Safety APIDetects and anonymize toxic and profane text associated with LLMsresponsible-ai-safety
7Security APIFor different types of security attacks and defenses on tabular and image data, prompt injection and jailbreak checksresponsible-ai-security

** Endpoints for explainability are located in both the explainability and moderation layer repositories. Refer to the README files in these repositories for more details on specific features.

Please refer Features and Endpoints document for more details on endpoints and their usage.

Modules for the Responsible AI Toolkit Interface

The Responsible AI toolkit provides a user-friendly interface for seamless experimentation and alignment with various Responsible AI principles. The following APIs are required to activate and utilize the toolkit's UI. To access the toolkit through the interface, refer to the README files associated with the listed repositories.

#ModuleFunctionalitiesRepository name(s)
1MFEAn Angular micro frontend app serves as a user interface where users can easily interact with and consume various backend endpoints through independently developed, modular components.responsible-ai-mfe
2SHELLA shell application in a micro frontend architecture acts as the central hub, orchestrating and loading independent frontend modules. It provides a unified user interface where users can interact with different micro frontends, consume backend endpoints.responsible-ai-shell
3BackendA Python backend module focused on registration and authentication handles user account management, including user registration, login, password validation, and session management.responsible-ai-backend
4TelemetryA python backend module defining the various tenets structure for ingestion of the API's data into Elasticsearch indexes. It provided customizable input validation and insertion of data coming from tenets into elasticsearch, which can be further displayed using kibana.responsible-ai-telemetry
5File StoragePython module that provides versatile APIs for seamless integration across multiple microservices, enabling efficient file management with Azure Blob Storage. It supports key operations such as file upload, retrieval, and updates, offering a robust solution for handling files in Azure Blob Storage.responsible-ai-file-storage
6BenchmarkingDisplays stats related to benchmarking large language models (LLMs) across various categories such as fairness, privacy, truthfulness and ethics. It helps evaluate and compare LLM performance in these critical areas.responsible-ai-llm-benchmarking

Toolkit features at a glance

Generative AI Models

Safety, Security & PrivacyModel TransparencyText QualityLinguistic Quality
* Prompt Injection Score
* Jailbreak Score
* Privacy check
* Profanity check
* Restricted Topic check
* Toxicity check
* Refusal check
* Sentiment check
* Fairness & Bias check
* Hallucination Score
* Explainability Methods:
- Thread of Thoughts (ThoT)
- Chain of Thoughts (CoT)
- Graph of Thoughts (GoT)
- Chain of Verification (CoVe)
* Token Importance
* Invisible Text, Gibberish checks
* Ban Code check
* Completeness check
* Conciseness check
* Text Quality check
* Text Relevance check
* Uncertainty Score
* Coherence Score
* Language Critique Coherence
* Language Critique Fluency
* Language Critique Grammar
* Language Critique Politeness

Machine Learning Models

SecurityFairnessExplainability
* Simulate Adverserial Attacks
* Recommend Defense Mechanisms
* Bias Detection Methods:
- Statistical Parity Difference
- Disparate Imapct Ratio
- Four Fifth's Rule
- Cohen's D
* Mitigation Methods:
- Equalized Odds
- Re-weighing
* Global Explainability using SHAP
* Local Explainability using LIME

Upcoming Features

  • Logic of Thoughts(LoT) for enhanced Explainability
  • Fairness Auditing for continuous monitoring and mitigation of Biases
  • Red Teaming to identify and mitigate AI model security threats
  • Multi-lingual support for Prompt injection and Jailbreak in Moderation models
  • Multilingual Feature support to privacy & safety modules

Note: These API-based guardrails are optimized for Azure OpenAI. Users employing alternative LLMs should make the necessary client configuration adjustments. For Azure OpenAI api subscription, follow instructions provided in the Microsoft Azure website.

Contributors

Mickey875

16 commits

prav786

1 commits

romikumar7

1 commits

salus-rai/Salus

Responsible AI toolkit provides a set of APIs to integrate safety, security, privacy, explainability, fairness, and hallucination detection into AI solutions, ensuring trustworthiness and transparency.

8

stars

86

commits

Python

primary language

Dec 2, 2025

updated

README

Salus

salus provides a set of APIs to integrate safety, security, privacy, explainability, fairness, and hallucination detection into AI solutions, ensuring trustworthiness and transparency.

Repositories and Installation Instructions

The following table lists the modules of the salus. Installation instructions for each module can be found in the corresponding README file within the module's directory.

#ModuleFunctionalitiesRepository name(s)
1ModerationLayer APIs
(Comprehensive suite of Safety, Privacy, Explainability, Fairness and Hallucination tenets)
To regulate the content of prompts and responses generated by LLMsresponsible-ai-moderationlayer,
responsible-ai-moderationModel
2Explainability APIs**Get Explainability to LLM responses,
Global and local explainability for Regression, Classification and Timeseries Models
responsible-ai-llm-explain,
responsible-ai-explainability,
Model Details,
Reporting
3Fairness & Bias APICheck Fairness and detect Biases associated with LLM prompts and responses and also for traditional ML modelsresponsible-ai-fairness
4Hallucination APIDetect and quantify Hallucination in LLM responses under RAG scenariosresponsible-ai-hallucination
5Privacy APIDetect and anonymize or encrypt or hilight PII information in prompts for LLMs or in its responsesresponsible-ai-privacy
6Safety APIDetects and anonymize toxic and profane text associated with LLMsresponsible-ai-safety
7Security APIFor different types of security attacks and defenses on tabular and image data, prompt injection and jailbreak checksresponsible-ai-security

** Endpoints for explainability are located in both the explainability and moderation layer repositories. Refer to the README files in these repositories for more details on specific features.

Please refer Features and Endpoints document for more details on endpoints and their usage.

Modules for the Responsible AI Toolkit Interface

The Responsible AI toolkit provides a user-friendly interface for seamless experimentation and alignment with various Responsible AI principles. The following APIs are required to activate and utilize the toolkit's UI. To access the toolkit through the interface, refer to the README files associated with the listed repositories.

#ModuleFunctionalitiesRepository name(s)
1MFEAn Angular micro frontend app serves as a user interface where users can easily interact with and consume various backend endpoints through independently developed, modular components.responsible-ai-mfe
2SHELLA shell application in a micro frontend architecture acts as the central hub, orchestrating and loading independent frontend modules. It provides a unified user interface where users can interact with different micro frontends, consume backend endpoints.responsible-ai-shell
3BackendA Python backend module focused on registration and authentication handles user account management, including user registration, login, password validation, and session management.responsible-ai-backend
4TelemetryA python backend module defining the various tenets structure for ingestion of the API's data into Elasticsearch indexes. It provided customizable input validation and insertion of data coming from tenets into elasticsearch, which can be further displayed using kibana.responsible-ai-telemetry
5File StoragePython module that provides versatile APIs for seamless integration across multiple microservices, enabling efficient file management with Azure Blob Storage. It supports key operations such as file upload, retrieval, and updates, offering a robust solution for handling files in Azure Blob Storage.responsible-ai-file-storage
6BenchmarkingDisplays stats related to benchmarking large language models (LLMs) across various categories such as fairness, privacy, truthfulness and ethics. It helps evaluate and compare LLM performance in these critical areas.responsible-ai-llm-benchmarking

Toolkit features at a glance

Generative AI Models

Safety, Security & PrivacyModel TransparencyText QualityLinguistic Quality
* Prompt Injection Score
* Jailbreak Score
* Privacy check
* Profanity check
* Restricted Topic check
* Toxicity check
* Refusal check
* Sentiment check
* Fairness & Bias check
* Hallucination Score
* Explainability Methods:
- Thread of Thoughts (ThoT)
- Chain of Thoughts (CoT)
- Graph of Thoughts (GoT)
- Chain of Verification (CoVe)
* Token Importance
* Invisible Text, Gibberish checks
* Ban Code check
* Completeness check
* Conciseness check
* Text Quality check
* Text Relevance check
* Uncertainty Score
* Coherence Score
* Language Critique Coherence
* Language Critique Fluency
* Language Critique Grammar
* Language Critique Politeness

Machine Learning Models

SecurityFairnessExplainability
* Simulate Adverserial Attacks
* Recommend Defense Mechanisms
* Bias Detection Methods:
- Statistical Parity Difference
- Disparate Imapct Ratio
- Four Fifth's Rule
- Cohen's D
* Mitigation Methods:
- Equalized Odds
- Re-weighing
* Global Explainability using SHAP
* Local Explainability using LIME

Upcoming Features

  • Logic of Thoughts(LoT) for enhanced Explainability
  • Fairness Auditing for continuous monitoring and mitigation of Biases
  • Red Teaming to identify and mitigate AI model security threats
  • Multi-lingual support for Prompt injection and Jailbreak in Moderation models
  • Multilingual Feature support to privacy & safety modules

Note: These API-based guardrails are optimized for Azure OpenAI. Users employing alternative LLMs should make the necessary client configuration adjustments. For Azure OpenAI api subscription, follow instructions provided in the Microsoft Azure website.

Contributors

Mickey875

16 commits

prav786

1 commits

romikumar7

1 commits

Languages

Python

55.7%

TypeScript

14.7%

Jupyter Notebook

14.0%

HTML

10.1%

CSS

3.2%

JavaScript

1.6%