Skip to content

Commit

Permalink
Document differences from vanilla langchain4j
Browse files Browse the repository at this point in the history
Closes: #6
  • Loading branch information
geoand committed Nov 15, 2023
1 parent 3962532 commit 6e4d928
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,20 @@ During interaction, the LLM can invoke these tools and reflect on their output.
<4> The `@SystemMessage` annotation registers a _system message_, setting the initial context or "scope".
<5> The `@UserMessage` annotation serves as the _prompt_.
<6> The method invokes the LLM, initiating an exchange between the LLM and the application, beginning with the system message and then the user message. Your application triggers this method and receives the response.

== Advantages over vanilla Langchain4j

The extension offers the following advantages over using the vanilla https://github.com/langchain4j/langchain4j[LangChain4j] library in Quarkus:

* Seamless integration with the Quarkus programming model
** CDI beans for the Langchain4j models
** Standard configuration properties for configuring said models
* xref:ai-services.adoc[Declarative AI Services]
* Build time wiring
** Reduced footprint of the library
** Feedback about misuse at build time
* Leverage runtime Quarkus components
** REST calls and JSON handling are performed using the libraries used throughout Quarkus
*** Results in reduces library footprint
*** Enables GraalVM native image compilation

0 comments on commit 6e4d928

Please sign in to comment.