File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# Customizing Prompt Templates
22
33This guide demonstrates how to configure and use prompt templates with
4- the [ LangChain4J's AiServices] ( https://docs.langchain4j.dev/tutorials/ai-services ) . This setup involves
5- configuring prompt templates, defining and extending prompt template sources and template rendering.
4+ the [ LangChain4J's AiServices] ( https://docs.langchain4j.dev/tutorials/ai-services ) . This setup involves configuring
5+ prompt templates, defining and extending prompt template sources and template rendering.
66
77## Creating and Using Prompt Template
88
9- Let's start with built-in mechanizm of loading prompt template from classpath. Your prompt templates should be located
9+ Let's start with built-in mechanism of loading prompt template from classpath. Your prompt templates should be located
1010in the classpath, e.g.
1111
1212File: ` prompts/default-system-prompt.mustache `
@@ -65,7 +65,7 @@ System and user prompts will be:
6565## How does it work
6666
6767In the default implementation, ` TemplateSystemMessageProvider ` handles the system prompt template and ` AiServices ` uses
68- the templates to generate responses .
68+ the templates to generate prompts .
6969
7070` PromptTemplateFactory ` provides ` PromptTemplateFactory.Template ` for ` AiServices ` . It is registered automatically via
7171Java ServiceLoaders mechanism. This class is responsible for obtaining prompt templates from a ` PromptTemplateSource ` .
You can’t perform that action at this time.
0 commit comments