Skip to content

Commit

Permalink
Fix dependencies shown in quickstart guide
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-eberle committed Dec 4, 2023
1 parent 1ba5659 commit 3b0b6f5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,29 @@ image::llms-big-picture.png[width=600,align="center"]

== Quick Overview

To incorporate this extension, add the `io.quarkiverse.langchain4j:quarkus-langchain4j` extension to your build file.

For example, in Maven, add the following dependency to your POM file:
To incorporate Quarkus Langchain4j into your Quarkus project, add the following Maven dependency:

[source,xml,subs=attributes+]
----
<dependency>
<groupId>io.quarkiverse.langchain4j</groupId>
<artifactId>quarkus-langchain4j</artifactId>
<artifactId>quarkus-langchain4j-openai</artifactId>
<version>{project-version}</version>
</dependency>
----

Depending on the specific LLM you're using, additional dependencies and configurations might be necessary.
For instance, with OpenAI:
or, to use hugging face:

[source,xml,subs=attributes+]
----
<dependency>
<groupId>io.quarkiverse.langchain4j</groupId>
<artifactId>quarkus-langchain4j-openai</artifactId>
<artifactId>quarkus-langchain4j-huggingface</artifactId>
<version>{project-version}</version>
</dependency>
----


Then, include your OpenAI API key in your `application.properties` file (or any other mandatory configuration):

[source,properties,subs=attributes+]
Expand Down

0 comments on commit 3b0b6f5

Please sign in to comment.