Protecting PII in Drupal AI: An introduction to Guardrails

AI features are landing on government websites fast: chatbots, content suggestions, and AI-powered search. Every one of them sends text to a Large Language Model (LLM), and that text is typed by humans who don't always follow instructions bgy including PII in their chat. In this post, we examine the data risks of integrating LLMs into a Drupal site and how the Guardrails system in the Drupal AI module enables us to filter and validate all data that flows between the site and the model, including custom PHP guardrails for Australian government PII.