Tagged articles

PromptTemplate

14 articles · Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Aug 3, 2026 · Backend Development

Stop Hand‑Writing Prompts: Use LangChain Templates to Automate API Testing with AI

API testing often involves repetitive string concatenation, inconsistent output formats, and costly token usage; this article shows how LangChain's PromptTemplate and ChatPromptTemplate turn prompts into reusable, composable components that generate assertions, test data, log analysis, multi‑turn debugging, and more, with concrete Python examples.

API testingChatPromptTemplateJinja2
0 likes · 15 min read
Stop Hand‑Writing Prompts: Use LangChain Templates to Automate API Testing with AI
Coder Trainee
Coder Trainee
Jun 19, 2026 · Artificial Intelligence

Deep Dive into Spring AI: Advanced ChatClient, Prompt Templates, and Function Calling

This article explores Spring AI's core design patterns, advanced ChatClient usage, dynamic PromptTemplate creation, few‑shot prompting, structured output parsing, and declarative function calling with @Tool annotations, providing code examples, advisor mechanisms, and testing tips for Java developers.

AI integrationChatClientFunction Calling
0 likes · 13 min read
Deep Dive into Spring AI: Advanced ChatClient, Prompt Templates, and Function Calling
Tech Ocean
Tech Ocean
Jun 6, 2026 · Artificial Intelligence

Spring AI Day 3: Eliminating Hard‑Coded Prompts with Templates and Role Settings

The article explains how to move beyond static prompts in Spring AI by using System and User message roles, PromptTemplate placeholders with .param(), defaultSystem configuration for reusable role definitions, and independent PromptTemplate usage, providing concrete code examples for each technique.

ChatClientJavaPrompt Engineering
0 likes · 5 min read
Spring AI Day 3: Eliminating Hard‑Coded Prompts with Templates and Role Settings
Tech Ocean
Tech Ocean
Apr 22, 2026 · Artificial Intelligence

Direct API vs LangChain: Master Every LLM Invocation Method in One Day

This article compares raw API calls with LangChain's abstractions, explains when to use ChatModel versus LLM interfaces, demonstrates model selection across providers, shows how to build prompt templates and output parsers, and provides a complete Python example with error‑handling best practices.

ChatModelLLMLangChain
0 likes · 10 min read
Direct API vs LangChain: Master Every LLM Invocation Method in One Day
Senior Xiao Ying
Senior Xiao Ying
Apr 3, 2026 · Artificial Intelligence

Spring AI 1.1 GA: Quick Start Guide for Building Java AI Applications

This article introduces Spring AI, explains its purpose as a standardized Java framework for AI integration, highlights the new Model Context Protocol and expanded model support in version 1.1 GA, and provides a step‑by‑step tutorial—including dependencies, configuration, and code examples—to help developers quickly build AI‑powered applications.

AI integrationChatClientJava
0 likes · 7 min read
Spring AI 1.1 GA: Quick Start Guide for Building Java AI Applications
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.

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