Embark on a journey into conversational AI with LangChain in TypeScript. This course equips you with the skills to build sophisticated chat applications, starting with basic message exchanges and advancing to complex conversation management. Discover how to tailor AI responses, laying a strong foundation for innovative natural language processing endeavors.
Overview
Syllabus
- Unit 1: Sending a Message with LangChain
- Ask the AI a Custom Question
- Fix Response Processing in LangChain
- Building a Complete LangChain Script
- Switching from OpenAI to Anthropic Claude
- Unit 2: Customizing Model Parameters in LangChain
- Selecting a Specific AI Model
- Controlling Response Length with maxTokens
- Controlling AI Creativity with Temperature
- Controlling Vocabulary Diversity with Top P Sampling
- Reducing Repetition with Frequency Penalty
- Adding Presence Penalty for Topic Diversity
- Unit 3: Structuring AI Conversations with System and Human Messages
- Exploring HumanMessage Properties in LangChain
- Working with SystemMessage Objects
- Fix the Message Array Bug
- Using HumanMessage Objects
- Adding a Pirate Persona with System Messages
- Adding Constraints to System Prompts
- Unit 4: Managing Multi-Turn Conversation History with LangChain
- Creating Your First Message List with LangChain
- Creating Multi-Turn Conversations with LangChain
- Creating a Reusable Function for Multi-Turn Conversations
- Resetting Conversation History in LangChain
- Managing Multiple Conversations with LangChain