ChatGPT Moderation API: Enter/Output Management | by Andrea Valenzuela | Jul, 2023


Utilizing the OpenAI’s Moderation Endpoint for Accountable AI

Self-made gif.

Giant Language Fashions (LLMs) have undoubtedly reworked the best way we work together with expertise. ChatGPT, among the many outstanding LLMs, has confirmed to be a useful device, serving customers with an enormous array of data and useful responses. Nonetheless, like all expertise, ChatGPT isn’t with out its limitations.

Latest discussions have dropped at gentle an necessary concern — the potential for ChatGPT to generate inappropriate or biased responses. This concern stems from its coaching information, which contains the collective writings of people throughout numerous backgrounds and eras. Whereas this range enriches the mannequin’s understanding, it additionally brings with it the biases and prejudices prevalent in the actual world.

Because of this, some responses generated by ChatGPT could mirror these biases. However let’s be truthful, inappropriate responses will be triggered by inappropriate person queries.

On this article, we’ll discover the significance of actively moderating each the mannequin’s inputs and outputs when constructing LLM-powered purposes. To take action, we’ll use the so-called OpenAI Moderation API that helps determine inappropriate content material and take motion accordingly.

As at all times, we’ll implement these moderation checks in Python!

It’s essential to acknowledge the importance of controlling and moderating person enter and mannequin output when constructing purposes that use LLMs beneath.

📥 Person enter management refers back to the implementation of mechanisms and strategies to observe, filter, and handle the content material supplied by customers when participating with powered LLM purposes. This management empowers builders to mitigate dangers and uphold the integrity, security, and moral requirements of their purposes.

📤 Output mannequin management refers back to the implementation of measures and methodologies that allow monitoring and filtering of the responses generated by the mannequin in its interactions with customers. By exercising management over the mannequin’s outputs, builders can deal with potential points corresponding to biased or inappropriate responses.


Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button