Skip to content

Commit 093153c

Browse files
committed
Fix links
Signed-off-by: Christian Tzolov <[email protected]>
1 parent 9166364 commit 093153c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/prompt-engineering-patterns.adoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
= Prompt Engineering Patterns
33

44
Practical implementations of Prompt Engineering techniques based on the comprehensive link:https://www.kaggle.com/whitepaper-prompt-engineering[Prompt Engineering Guide].
5-
The guide covers the theory, principles, and patterns of effective prompt engineering, while here we demosntrate how to translate those concepts into working Java code using Spring AI's fluent link:https://docs.spring.io/spring-ai/reference/api/chatclient.html[ChatClient API].
6-
The demo source code used in this article is available at: https://github.com/spring-projects/spring-ai-examples/tree/main/prompt-engineering/prompt-engineering-patterns
5+
The guide covers the theory, principles, and patterns of effective prompt engineering, while here we demosntrate how to translate those concepts into working Java code using Spring AI's fluent xref::api/chatclient.adoc[ChatClient API].
6+
The demo source code used in this article is available at: link:https://github.com/spring-projects/spring-ai-examples/tree/main/prompt-engineering/prompt-engineering-patterns[Prompt Engineering Patterns Examples].
77

88
== 1. Configuration
99

@@ -13,7 +13,7 @@ It covers selecting the right LLM provider for your use case and configuring imp
1313
=== LLM Provider Selection
1414

1515
For prompt engineering, you will start by choosing a model.
16-
Spring AI supports link:https://docs.spring.io/spring-ai/reference/api/chat/comparison.html[multiple LLM providers] (such as OpenAI, Anthropic, Google Vertex AI, AWS Bedrock, Ollama and more), letting you switch providers without changing application code - just update your configuration.
16+
Spring AI supports xref::api/chat/comparison.adoc[multiple LLM providers] (such as OpenAI, Anthropic, Google Vertex AI, AWS Bedrock, Ollama and more), letting you switch providers without changing application code - just update your configuration.
1717
Just add the selected starter dependency `spring-ai-starter-model-<MODEL-PROVIDER-NAME>`.
1818
For example, here is how to enable Anthropic Claude API:
1919

@@ -25,10 +25,7 @@ For example, here is how to enable Anthropic Claude API:
2525
</dependency>
2626
----
2727

28-
along with some connection properties:
29-
`spring.ai.anthropic.api-key=${ANTHROPIC_API_KEY}`
30-
31-
You can find detailed information for enabling each model in the link:https://docs.spring.io/spring-ai/reference/api/chatmodel.html[reference docs].
28+
You can find detailed information for enabling each model in the xref::api/chatmodel.adoc[reference docs].
3229

3330
You can specify the LLM model name like this:
3431

@@ -41,9 +38,9 @@ You can specify the LLM model name like this:
4138

4239
=== LLM Output Configuration
4340

44-
image::https://docs.spring.io/spring-ai/reference/_images/chat-options-flow.jpg[width=400,float=right]
41+
image::https://docs.spring.io/spring-ai/reference/_images/chat-options-flow.jpg[width=500,float=right]
4542

46-
Before we dive into prompt engineering techniques, it's essential to understand how to configure the LLM's output behavior. Spring AI provides several configuration options that let you control various aspects of generation through the link:https://docs.spring.io/spring-ai/reference/api/chatmodel.html#_chat_options[ChatOptions] builder.
43+
Before we dive into prompt engineering techniques, it's essential to understand how to configure the LLM's output behavior. Spring AI provides several configuration options that let you control various aspects of generation through the xref:/api/chatmodel.adoc#_chat_options[ChatOptions] builder.
4744

4845
All configurations can be applied programmatically as demonstrated in the examples below or through Spring application properties at start time.
4946

0 commit comments

Comments
 (0)