TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Enhance Content Moderation for ChatGPT with OpenAI’s Moderation API

Idil Ismiguzel
TDS Archive
Published in
6 min readJul 7, 2023

--

Photo by Joshua Kettle on Unsplash

Disclaimer: This article is focused on checking content compliance with moderation guidelines. As a result, there may be references to content involving violence, self-harm, hate, and sexual violence.

With the rise of prompt engineering and remarkable achievements of Large Language Models in generating responses to our inquiries, chatbots like ChatGPT are becoming an integral part of our daily lives, and the applications we create. Whether you’re using AI models for personal purposes or leveraging their capabilities to develop advanced systems, it is important to make sure you use AI models in generating content that follows specific moderation guidelines and rules. ⚠️

In this article, we will concentrate on OpenAI’s moderation endpoint, a great feature for checking content compliance with OpenAI’s usage policies. We’ll explore how to integrate moderation API into our systems that use ChatGPT and verify both inputs and outputs to ensure they meet desired guidelines.

If you’re new to prompt engineering, I highly recommend checking out my article on mastering prompt engineering before diving in. It will provide you with insights to…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Idil Ismiguzel
Idil Ismiguzel

Written by Idil Ismiguzel

Data Scientist | Writing articles on Data Science & Machine Learning | MSc, MBA | https://de.linkedin.com/in/idilismiguzel