Tagged articles
7 articles
Page 1 of 1
Qborfy AI
Qborfy AI
Apr 9, 2025 · Artificial Intelligence

Mastering LangChain PromptTemplates to Reduce AI Hallucinations

This tutorial walks through the concept of PromptTemplate in LangChain, demonstrates how to build chat prompt templates, use message placeholders, apply Few‑Shot prompting and ExampleSelector techniques, and shows concrete code and output examples that help mitigate large‑language‑model hallucinations.

AI hallucinationExampleSelectorFewShot
0 likes · 11 min read
Mastering LangChain PromptTemplates to Reduce AI Hallucinations
JavaEdge
JavaEdge
Jun 23, 2024 · Artificial Intelligence

Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers

This tutorial walks through installing LangChain, creating an LLM (via own GPU resources or third‑party APIs), designing parameterized prompt templates, implementing a custom output parser for structured results, and running a complete Python example that generates culturally specific names.

LLMLangChainName Generation
0 likes · 7 min read
Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers