Skip to content

Commit 9a408a6

Browse files
authored
Update guide.fr-fr.md
1 parent d89bd1e commit 9a408a6

File tree

1 file changed

+13
-13
lines changed
  • pages/public_cloud/ai_machine_learning/endpoints_tuto_14_function_calling_langchain4j

1 file changed

+13
-13
lines changed

pages/public_cloud/ai_machine_learning/endpoints_tuto_14_function_calling_langchain4j/guide.fr-fr.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Endpoints - Utiliser les appels de fonctions avec LangChain4J
33
excerpt: Apprenez à utiliser les appels de fonctions avec Java, LangChain4j et OVHcloud AI Endpoints
4-
updated: 2025-06-24
4+
updated: 2025-08-06
55
---
66

77
> [!primary]
@@ -11,23 +11,23 @@ updated: 2025-06-24
1111
1212
## Objective
1313

14-
Stable Diffusion is a powerful artificial intelligence model to generate images from text descriptions.
15-
You can use it, thanks to AI Endpoints, simply by calling the endpoint with a prompt.
16-
However, creating a good prompt for Stable Diffusion can be challenging.
14+
Stable Diffusion is a powerful artificial intelligence model to generate images from text descriptions. You can use it, thanks to AI Endpoints by simply calling the endpoint with a prompt. However, creating a good prompt for Stable Diffusion can be challenging.
15+
1716
Function Calling enables the AI system to perform more complex and dynamic tasks, and to leverage external knowledge and services to generate more accurate and informative responses.
1817
In the context of image generation, function calling can be used to enhance the quality of the prompts by optimizing them thanks to external tool based on a LLM.
19-
In this tutorial, we will show you how to optimize your prompts using **Function Calling** and OVHcloud AI Endpoints.
2018

21-
To do this, we will use **[LangChain4j](https://github.com/langchain4j/langchain4j)**, Java-based framework inspired by [LangChain](https://github.com/langchain-ai/langchain), designed to simplify the integration of LLMs (Large Language Models) into applications. Note that LangChain4j is not officially maintained by the LangChain team, despite the similar name.
19+
**In this tutorial, we will show you how to optimize your prompts using **Function Calling** and OVHcloud AI Endpoints.**
20+
21+
To do this, we will use **[LangChain4j](https://github.com/langchain4j/langchain4j)**, a Java-based framework inspired by [LangChain](https://github.com/langchain-ai/langchain), designed to simplify the integration of LLMs (Large Language Models) into applications. Note that **LangChain4j** is not officially maintained by the LangChain team, despite the similar name.
2222

2323
Combined with OVHcloud **[AI Endpoints](https://endpoints.ai.cloud.ovh.net/)** which offers both LLM and embedding models, it becomes easy to create advanced, production-ready assistants.
2424

2525
![image](images/painter.png){.thumbnail}
2626

2727
## Definition
2828

29-
- **Function Calling**: Function calling refers to the ability of a language model or AI system to ask to invoke and execute pre-defined functions or tasks, such as data processing, calculations, or external API calls, in response to user input or prompts.
30-
- **[LangChain4j](https://github.com/langchain4j/langchain4j)**: Java-based framework inspired by [LangChain](https://github.com/langchain-ai/langchain), designed to simplify the integration of LLMs (Large Language Models) into applications. Note that LangChain4j is not officially maintained by the LangChain team, despite the similar name.
29+
- **Function Calling**: Function calling refers to the ability of a language model or AI system AI system to request, invoke, and execute predefined functions or tasks such as data processing, calculations, or external API calls in response to user input or prompts.
30+
- **[LangChain4j](https://github.com/langchain4j/langchain4j)**: a Java-based framework inspired by [LangChain](https://github.com/langchain-ai/langchain), designed to simplify the integration of LLMs (Large Language Models) into applications. Note that LangChain4j is not officially maintained by the LangChain team, despite the similar name.
3131
- **[AI Endpoints](https://endpoints.ai.cloud.ovh.net/)**: A serverless platform by OVHcloud providing easy access to a variety of world-renowned AI models including Mistral, LLaMA, and more. This platform is designed to be simple, secure, and intuitive, with data privacy as a top priority.
3232

3333
## Requirements
@@ -43,6 +43,7 @@ To create our application we will use LangChain4J to simplify the integration of
4343
### Tool creation
4444

4545
To use the function calling mechanism, we need to define a tool.
46+
4647
In our example the goal of the tool is to call Stable Diffusion API to generate an image.
4748

4849
⚠️ This is not the model itself that calls the tool but the client that invokes the model. ⚠️
@@ -104,7 +105,7 @@ interface ChatBot {
104105

105106
It’s not mandatory to create a such detailed system message, but it helps the model to choose the tool when needed.
106107

107-
After this we assemble all the pieces together.
108+
After this we assemble all the pieces together:
108109

109110
```java
110111
// Chatbot with tool calling
@@ -144,9 +145,8 @@ void main() throws Exception {
144145
}
145146
```
146147

147-
ℹ️ We use a loop to be able to ask the model to optimize the image generation parameters based on the previous response. ℹ️
148+
ℹ️ We use a loop to be able to ask the model to optimize the image generation parameters based on the previous response. ℹ️ And that is it!
148149

149-
And that it!
150150
It’s time to test our Stable Diffusion optimizer.
151151

152152
```sh
@@ -170,7 +170,7 @@ with a warm and inviting atmosphere. If you have any issues or need further assi
170170
Enter your message: exit
171171
```
172172

173-
ℹ️ As you see, the model translate the prompt 😊
173+
ℹ️ As you can see, the model translated the prompt 😊
174174

175175
Here is the result of the prompt:
176176

@@ -196,4 +196,4 @@ Please feel free to send us your questions, feedback, and suggestions regarding
196196

197197
- In the #ai-endpoints channel of the OVHcloud [Discord server](https://discord.gg/ovhcloud), where you can engage with the community and OVHcloud team members.
198198

199-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
199+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.

0 commit comments

Comments
 (0)