Skip to main content

Risk Atlas Nexus provides tooling to help bring together disparate resources related to governance of foundation models.

Project description

Risk Atlas Nexus

License: Apache 2.0 main branch Code style: black

👉 (Jun-2025) Our HF spaces demo site has been updated to show related benchmarks!

👉 (Jun-2025) The demo projects repository showcases implementations of Risk Atlas Nexus.

Overview

Risk Atlas Nexus provides tooling to help bring together resources related to governance of foundation models. We support a community-driven approach to curating and cataloguing resources such as datasets, benchmarks and mitigations. Our goal is to turn abstract risk definitions into actionable workflows that streamline AI governance processes. By connecting fragmented resources, Risk Atlas Nexus seeks to fill a critical gap in AI governance, enabling stakeholders to build more robust, transparent, and accountable systems. Risk Atlas Nexus builds on the IBM AI Risk Atlas making this educational resource a nexus of governance assets and tooling. An AI System's Knowledge Graph is used to provide a unified structure that links and contextualize the very heterogeneous domain data.

Our intention is to create a starting point for an open AI Systems ontology whose focus is on risk and that the community can extend and enhance. This ontology serves as the foundation that unifies innovation and tooling in the AI risk space. By lowering the barrier to entry for developers, it fosters a governance-first approach to AI solutions, while also inviting the broader community to contribute their own tools and methodologies to expand its impact.

Features

  • 🏗️ An ontology that combines the AI risk view (taxonomies, risks, actions) with an AI model view (AI systems, AI models, model evaluations) into one coherent schema
  • 📚 AI Risks collected from IBM AI Risk Atlas, IBM Granite Guardian, MIT AI Risk Repository, NIST Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, the AI Risk Taxonomy (AIR 2024), the AILuminate Benchmark, Credo's Unified Control Framework, and OWASP Top 10 for Large Language Model Applications
  • 🔗 Mappings are proposed between the taxonomies and between risks and actions
  • 🐍 Use the python library methods to quickly explore available risks, relations and actions
  • 🚨 Use the python library methods to detect potential risks in your usecase
  • 📤 Download an exported graph populated with data instances
  • ✨ Example use-case of auto-assistance in compliance questionnaires using CoT examples and Risk Atlas Nexus
  • 🔧 Tooling to convert the LinkML schema and instance data into a Cypher representation to populate a graph database

Architecture

Architecture

Links

Installation

This project targets python version ">=3.11, <3.12". You can download specific versions of python here: https://www.python.org/downloads/

Note: Replace INFERENCE_LIB with one of the LLM inference library [ollama, vllm, wml, rits] as explained here

To install the current release

pip install "risk-atlas-nexus[INFERENCE_LIB]"

To install the latest code

git clone git@github.com:IBM/risk-atlas-nexus.git
cd risk-atlas-nexus
python -m venv vrisk-atlas-nexus
source vrisk-atlas-nexus/bin/activate
pip install -e ".[INFERENCE_LIB]"

Install for inference APIs

Risk Atlas Nexus uses Large Language Models (LLMs) to infer risks and risks data. Therefore, requires access to LLMs to inference or call the model. The following LLM inference APIs are supported:

IBM Watsonx AI (WML)

When using the WML platform, you need to:

  1. Add configuration to .env file as follows. Please follow this documentation on obtaining WML credentials.
WML_API_KEY=<WML api key goes here>
WML_API_URL=<WML url key goes here>
WML_PROJECT_ID=<WML project id goes here, Optional>
WML_SPACE_ID=<WML space id goes here, Optional>

Either 'WML_PROJECT_ID' or 'WML_SPACE_ID' need to be specified.

  1. Install WML dependencies as follows:
pip install -e ".[wml]"

Ollama

When using the Ollama inference, you need to:

  1. Install Ollama dependencies as follows:
pip install -e ".[ollama]"
  1. Please follow the quickstart guide to start Ollama LLM server. Server will start by default at http://localhost:11434

  2. When selecting Ollama engine in Risk Atlas Nexus, use the server address localhost:11434 as the api_url in the credentials or set the environment variable OLLAMA_API_URL with this value.

vLLM

When using the vLLM inference, you need to:

  1. For Mac users, follow the instuctions here. Users need to build from the source vLLM to natively run on macOS.

  2. For Linux users, install vLLM dependencies as follows:

pip install -e ".[vllm]"

Above package is enough to run vLLM in once-off offline mode. When selecting vLLM execution from Risk Atlas Nexus, credentials should be passed as None to use vLLM offline mode.

  1. (Optional) To run vLLM on an OpenAI-Compatible vLLM Server, execute the command:
vllm serve ibm-granite/granite-3.1-8b-instruct --max_model_len 4096 --host localhost --port 8000 --api-key <CUSTOM_API_KEY>

The CUSTOM_API_KEY can be any string that you choose to use as your API key. Above command will start vLLM server at http://localhost:8000. The server currently hosts one model at a time. Check all supported APIs at http://localhost:8000/docs

Note: When selecting vLLM engine in Risk Atlas Nexus, pass api_url as host:port and given api_key to credentials with values from the vllm serve command above.

RITS (IBM Internal Only)

When using the RITS platform, you need to:

  1. Add configuration to .env file as follows:
RITS_API_KEY=<RITS api key goes here>
RITS_API_URL=<RITS url key goes here>
  1. Install RITS dependencies as follows:
pip install -e ".[rits]"

Compatibility

Referencing the project

If you use Risk Atlas Nexus in your projects, please consider citing the following:

@article{airiskatlas2025,
      title={AI Risk Atlas: Taxonomy and Tooling for Navigating AI Risks and Resources},
      author={Frank Bagehorn and Kristina Brimijoin and Elizabeth M. Daly and Jessica He and Michael Hind and Luis Garces-Erice and Christopher Giblin and Ioana Giurgiu and Jacquelyn Martino and Rahul Nair and David Piorkowski and Ambrish Rawat and John Richards and Sean Rooney and Dhaval Salwala and Seshu Tirupathi and Peter Urbanetz and Kush R. Varshney and Inge Vejsbjerg and Mira L. Wolf-Bauwens},
      year={2025},
      eprint={2503.05780},
      archivePrefix={arXiv},
      primaryClass={cs.CY},
      url={https://arxiv.org/abs/2503.05780}
}

License

Risk Atlas Nexus is provided under Apache 2.0 license.

Contributing

Tip: Use the makefile provided to regenerate artifacts provided in the repository by running make in this repository.

Find out more

IBM ❤️ Open Source AI

Risk Atlas Nexus has been brought to you by IBM.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

risk_atlas_nexus-1.0.4.tar.gz (269.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

risk_atlas_nexus-1.0.4-py3-none-any.whl (307.5 kB view details)

Uploaded Python 3

File details

Details for the file risk_atlas_nexus-1.0.4.tar.gz.

File metadata

  • Download URL: risk_atlas_nexus-1.0.4.tar.gz
  • Upload date:
  • Size: 269.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for risk_atlas_nexus-1.0.4.tar.gz
Algorithm Hash digest
SHA256 991e039a2a2c84ea258bdc34df49cb81de7f8219d172b487424fcaec58a5f670
MD5 4fa2f96215254f8454195b3114ec6c1e
BLAKE2b-256 18e8499a8a36568cd396c0e497e70ee7f8155661626439498ababe3a2b5ca914

See more details on using hashes here.

File details

Details for the file risk_atlas_nexus-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for risk_atlas_nexus-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7c1f5d8b9c07468a89d87b1bf7c1ee0106a17b17c1322465167a702e757cabc9
MD5 b5bd5aeeb121ca8395a5046c810c75fe
BLAKE2b-256 515348f2ae2ff28ecf8d4ba6c6f66dcf8c12b74bf6320d8be76ddfafa1ce0924

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page