Create a Self-Moderated Commentary System with LangChain and OpenAI
Last Updated on November 6, 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 article is part of a free course about Large Language Models available on GitHub.
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… 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