Skip to content

Commit 8570960

Browse files
Konstantin PavlovKonstantin Pavlov
authored andcommitted
Fix typo and clarify prompt template usage
1 parent 6930521 commit 8570960

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/PromptTemplates.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Customizing Prompt Templates
22

33
This 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
1010
in the classpath, e.g.
1111

1212
File: `prompts/default-system-prompt.mustache`
@@ -65,7 +65,7 @@ System and user prompts will be:
6565
## How does it work
6666

6767
In 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
7171
Java ServiceLoaders mechanism. This class is responsible for obtaining prompt templates from a `PromptTemplateSource`.

0 commit comments

Comments
 (0)