|
2 | 2 |
|
3 | 3 | :project-ai-name: quarkus-langchain-app |
4 | 4 |
|
5 | | -The real deal to bring AI for your development process is when you can create a real interaction between services you build and/or use with the LLM. |
| 5 | +Things become more interesting when you can bring the AI LLM into your application and get it to interact with specific functions you build for it. |
6 | 6 |
|
7 | 7 | This section will use AI to trigger an email service from our local application. To do this, we'll use LangChain4j's concept of Agents and Tools. |
8 | 8 |
|
9 | 9 | Agents operate by utilizing a language model to decipher a series of actions, unlike chains where actions are pre-programmed. Ie. agents leverage a language model as a cognitive engine to decide on the actions (tools) and their order. |
10 | 10 |
|
11 | | -You can read more about this concept in the https://docs.quarkiverse.io/quarkus-langchain4j/dev/agent-and-tools.html[Quarkus LangChain4j Documentation] |
| 11 | +You can read more about this in the https://docs.quarkiverse.io/quarkus-langchain4j/dev/agent-and-tools.html[Quarkus LangChain4j Documentation] |
12 | 12 |
|
13 | 13 | == Add the Mailer and Mailpit extensions |
14 | 14 |
|
@@ -148,9 +148,10 @@ public class EmailMeAPoemResource { |
148 | 148 | Update the following properties in your `application.properties` |
149 | 149 |
|
150 | 150 | IMPORTANT: The LangChain4j `demo` key currently does not support tools, so you will need to use a real OpenAI key for the email service to be called by the OpenAI model. |
151 | | -You can create an account over at https://platform.openai.com/[OpenAI] if you'd like to see this in action. |
| 151 | +You can create an account over at https://platform.openai.com/[OpenAI] if you'd like to see this in action. |
| 152 | +Note that OpenAI requires you to fund your account with credits to be able to use the API. The minimum is $5 but this amount will go a long way to test the scenarios in this tutorial. |
152 | 153 |
|
153 | | -NOTE: If you do not want to create an OpenAI key, you can still test the below scenario, it just won't send an email. |
| 154 | +NOTE: If you do not want to create an OpenAI key, you can still test the below scenario, it just won't send an email since the "Tool" functionality unfortunately won't work. |
154 | 155 |
|
155 | 156 | [#quarkuspdb-update-props] |
156 | 157 | [.console-input] |
|
0 commit comments