Skip to main content
HomeCode alongsArtificial Intelligence (AI)

Prompt Engineering with GPT & LangChain

Learn prompt engineering best practices while using ChatGPT to analyze the sentiment of financial news headlines and Reddit comments.
Oct 2023
Code along with us onCode Along

The quality of responses from GPT or other large language models is highly dependent on the quality of messages you send it.In this code-along, you'll learn how to perform sentiment analysis with GPT and LangChain, learn about MRKL prompts used to help LLMs reason, and build a simple AI agent. You'll also learn how to use prompt templates and parse the output from prompts, as well as filter bad unsavory content with the moderation API.