Natural Language Processing (NLP) and Large Language Models (LLM) with LangChain and Building Multi-stage Reasoning Systems
In this notebook we're going to create AI systems:
- Named
CommentatorMoodModeratorAI
will be a prototype AI self-commenting-and-moderating tool that will create new reaction comments to a piece of text with one LLM and use another LLM to critique those comments and flag them if they are negative. To build this we will walk through the steps needed to construct prompts and chains, as well as multiple LLM Chains that take multiple inputs, both from the previous LLM and external.
By the end of this notebook, you will be able to:
- Build prompt template and create new prompts with different inputs
- Create basic LLM chains to connect prompts and LLMs.
- Construct sequential chains of multiple
LLMChains
to perform multi-stage reasoning analysis. - Use langchain agents to build semi-automated systems with an LLM-centric agent.