Skip to content

Commit

Permalink
Merge pull request #85 from andreas-eberle/feature/fix-quickstart-dep…
Browse files Browse the repository at this point in the history
…endencies

Fix dependencies shown in quickstart guide
  • Loading branch information
geoand authored Dec 4, 2023
2 parents 1ba5659 + 3b0b6f5 commit 48bacf9
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 48bacf9

Please sign in to comment.