Course overview

LangChain JavaScript - Complete Developer Guide

Course content22 lessons
Introduction: Installing Ollama and Configuring OLLAMA_HOST Introduction: Installing Ollama and Configuring OLLAMA_HOST Lesson 1 Sending Requests to the Ollama API from Postman with LLAMA3.1 Sending Requests to the Ollama API from Postman with LLAMA3.1 Lesson 2 Analyzing Ollama's JSON API Response from Postman Analyzing Ollama's JSON API Response from Postman Lesson 3 What Are LangChain.js and the Ollama Library For? What Are LangChain.js and the Ollama Library For? Lesson 4 A First LangChain Example: Sending a Request from Node.js via Ollama npm A First LangChain Example: Sending a Request from Node.js via Ollama npm Lesson 5 Using LangChain for a Simple Ollama Request and Code Refactoring Using LangChain for a Simple Ollama Request and Code Refactoring Lesson 6 Using LLAMA as a Universal Translator with Chain and PromptTemplate Using LLAMA as a Universal Translator with Chain and PromptTemplate Lesson 7 Restricting the Translator's Output with Prompt Engineering Restricting the Translator's Output with Prompt Engineering Lesson 8 A Multi-Step Chain to Translate and Extract Keywords Using LLM Pipes A Multi-Step Chain to Translate and Extract Keywords Using LLM Pipes Lesson 9 The Memory Problem: Proof That LLM Prompts Are Stateless (Part 1) The Memory Problem: Proof That LLM Prompts Are Stateless (Part 1) Lesson 10 The Memory Problem: How to Manage Conversational Memory (Part 2) The Memory Problem: How to Manage Conversational Memory (Part 2) Lesson 11 Building a REST API to Chat with Ollama via LangChain Building a REST API to Chat with Ollama via LangChain Lesson 12 Adding Conversational Memory to the LangChain REST API Adding Conversational Memory to the LangChain REST API Lesson 13 Adding Role, Context, and a Mini Guard Rail to the Prompt Adding Role, Context, and a Mini Guard Rail to the Prompt Lesson 14 Improving the Prompt Guard Rail with Context and Thematic Constraints Improving the Prompt Guard Rail with Context and Thematic Constraints Lesson 15 The Pre-Guard Rail Concept: Filtering Dangerous Requests Before They Reach the LLM The Pre-Guard Rail Concept: Filtering Dangerous Requests Before They Reach the LLM Lesson 16 Completing the Pre-Guard Rail and Implementing a Post-Guard Rail Moderator Completing the Pre-Guard Rail and Implementing a Post-Guard Rail Moderator Lesson 17 Persistent Memory with JSON File Storage — No Dependencies (Part 1) Persistent Memory with JSON File Storage — No Dependencies (Part 1) Lesson 18 Persistent Memory with JSON File Storage — No Dependencies (Part 2) Persistent Memory with JSON File Storage — No Dependencies (Part 2) Lesson 19 Persistent Memory with SQLite3 and SQL (Part 1) Persistent Memory with SQLite3 and SQL (Part 1) Lesson 20 Persistent Memory with SQLite3 and SQL (Part 2) Persistent Memory with SQLite3 and SQL (Part 2) Lesson 21 Persistent Memory with SQLite3 and SQL (Part 3) Persistent Memory with SQLite3 and SQL (Part 3) Lesson 22
Previous
Up next Next
Current lesson | Lesson 16/22

The Pre-Guard Rail Concept: Filtering Dangerous Requests Before They Reach the LLM

LangChain JavaScript - Complete Developer Guide 0%
I'll introduce the Pre-Guard Rail concept in LangChain: a preventive filter that analyzes incoming requests before they reach the LLM, blocking potentially dangerous or off-topic inputs.
Instructor
G Giovanni Pace
Up next Completing the Pre-Guard Rail and Implementing a Post-Guard Rail Moderator