When Drupal meets AI

How the Drupal community is moving to embrace this new era of advancement.

# drupal # contribution # ai # openai # chatgpt
Drupal Intelligence

Walking through the new era’s days

Artificial Intelligence is radically becoming an integral part of our daily lives. It’s an unstoppable trend, and it will be a part of our lives for a long time. It’s already being used in many fields, such as medicine, finance, and education, and also in the development of new technologies, such as self-driving cars and robots. Witness to this trend is the increase in investments made for 2023 in favor of startups offering services related to Artificial Intelligence. The reason is that it is a powerful tool that can be used to solve many problems, and it is not just a matter of technology but also ethics. It is a tool that can be used for good or evil purposes, and it is up to us to decide how to use it.

“With great power comes great responsibility”

Like any wave of innovation, it makes you rack your brain thinking about the unbelievable opportunities it provides for streamlining your life and carrying out everyday tedious activities. However, at the same time, it instills a fear of the unknown that freezes us up because we are not convinced about its kindness. The institutions are trying to regulate the use of Artificial Intelligence, but it is not easy to find a balance between the benefits and the risks to fix the main concerns of the people:

  • Bias concerns, it is widely recognized that a significant portion of the content available on the web is generated by people who have the privilege of having access to the internet and the time to spend on it. As a result, the training data and results tend to reflect this demographic bias.

  • Ethical concerns, research by work management platform Asana’s Work Innovation Lab found that 29% of the UK workforce uses generative AI and Artificial Intelligence weekly, compared to 46% of workers in the US. However, the decision to do so in a professional context is complex, and there is a growing fear among employees that using AI will make them less valuable and leave them with fewer creative skills. The same study finds that 30% of workers fear being considered lazy for using AI, and 21% say they feel like an impostor.

  • Legal concerns, already last year, Microsoft, GitHub, and OpenAI were sued for an alleged violation of copyright law by reproducing open source code using Artificial Intelligence. As a consequence, in June this year, the European Commission published the first document with the purpose to regulate Artificial Intelligence. OpenAI then, at the end of August released an enterprise version of ChatGPT that promises to protect business data as more companies consider using the platform but worries about privacy and security.

  • Environmental concerns, training models are the most energy-intensive components of generative AI. The researchers argued that training a large, single deep learning model such as OpenAI’s GPT-4 or Google’s PaLM is estimated to use around 300 tons of CO~2~ - for comparison, the average person is responsible for creating approximately 5 tons of CO~2~ per year, although the average North American amount. Other researchers calculated that training a medium-sized generative AI model using a technique called neural architecture search used electricity and energy consumption equivalent to 626,000 tons of CO~2~ emissions – or the same as CO~2~ emissions produced by driving five average American cars over their lifetime. Training a single BERT model (a large language model developed by Google) from scratch would require the same energy and carbon footprint as a transatlantic commercial flight.

How is the Drupal community moving?

In this continuous evolution scenario, the Drupal community wants to keep pace and, since the end of last year, has brought out several modules for helping content editors, site builders, and developers.

On the edge, I might mention:

  • OpenAI / ChatGPT Integration provides a suite of submodules for content editors.
  • AI Interpolator is an interesting module that can help you implement AI workflows wherein you can use the result from one AI service as the input for another AI service.
  • Augmentor AI allows you to integrate disparate AI services into your Drupal site.
  • Search API AI allows you to create powerful, AI-driven search experiences for your users.

Last September, I had the opportunity to talk about this topic at the virtual event Drupal@localhost organized by SparkFabrik and GrUSP

I showed how the AI can help in some simple scenarios using a couple of contrib modules out of the box.

If you want to know more about how the community is working, you might reach out to the Drupal Artificial Intelligence (AI) community initiative and join the Drupal AI Slack channels #ai and #openai.

Voice to maintainers

During my journey in AI discovery, I had the pleasure of exchanging a few words with some of the maintainers of the modules mentioned above, and I want to thank them for their time and for sharing their thoughts with me:

They told me that a double dose of inspiration sparked the journey into their Drupal modules. First of all, the fantastic features of ChatGPT are that it’s like having a tech wizard who can understand language like a champ. This got them thinking: what if we could infuse that magic into Drupal? And this is where their second spark was born, in the deep desire to accelerate the evolution of Drupal. It’s a fact Drupal’s got many issues and exciting features in the pipeline, so why not turbocharge the solution process with the help of upcoming AI capabilities? Think about the awesome things we could achieve if we crank up the development speed.

It won’t be an easy feat because it’s like dancing with the ever-changing API – trying to keep up with its moves can be a real challenge. Moreover, the open-source world, while fantastic, sometimes comes with a tiny hiccup – not always having the funds it needs to keep pace with evolving technology. But good vibes shine through in their story; having AI by our side is like having a superhero making things simpler and faster, opening up a whole universe of possibilities for better experiences for end users and developers. What do you think if, in a not-so-distant future, we could dialogue with Drupal CMS to craft the features we’ve been longing for? It’s like having a futuristic conversation where our ideas transform into reality, thanks to the brilliant touch of Artificial Intelligence as described in this core idea Fully fledged website and module development with Artificial Intelligence.

Conclusions

Artificial Intelligence (AI)’s omnipresence in our lives is undeniable, shaping various aspects of society and technology. Conversations with module maintainers reveal a dual inspiration derived from the remarkable features of ChatGPT and the aspiration to contribute to Drupal’s advancement. While navigating the dynamic nature of AI, the Drupal community remains optimistic, envisioning a future where dialogue with Drupal CMS is enriched by AI, paving the way for collaborative innovation and the realization of desired features. The journey into AI discovery and module development reflects the community’s commitment to embracing AI’s potential while addressing challenges with resilience and creativity.

Well, if you wish to lend now a hand in the Drupal evolving path, you may start by tackling the bunch of small, but mighty improvements listed in the following links:

They seem like tiny tweaks but trust me, they can make a difference. Join the Drupal crew; we’re waiting for you!