Join thousands of students in our LangChain and Vector DBs in Production course, with over 50+ lessons and practical projects for FREE!.


Create a Self-Moderated Commentary System with LangChain and OpenAI
Latest   Machine Learning

Create a Self-Moderated Commentary System with LangChain and OpenAI

Last Updated on September 11, 2023 by Editorial Team

Author(s): Pere Martra

Originally published on Towards AI.

We’re going to create a self-moderated comment response system using two of the models available on OpenAI chained with LangChain. Preventing our system from being trolled.

This member-only story is on us. Upgrade to access all of Medium.

As a disclaimer, I would like to note that this article is merely an example created to demonstrate how the LangChain tool works. There are so many ways to create a self-moderated commentary system. The one we’ll be exploring in this article is just a very basic solution.

The basic idea is to isolate the model that ultimately publishes the response from the user input it is answering to.

In other words, we won’t allow the model interpreting the user’s text to be the ultimate authority for publishing the response. This… Read the full blog for free on Medium.

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓