Installation
Prerequisites
- Install Java Development Kit (JDK) 8+
Use java reference documentation targetting your operating system to install a Java Development Kit. You can then validate your installation with the following command.
- Install Apache Maven (3.8+)
Samples and tutorials have been designed with Apache Maven. Use the reference documentation top install maven validate your installation with
Core DependencyΒΆ
To install the latest version of langchain4j with Maven, add the following dependency to your pom.xml file.
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j</artifactId>
<version>${project.version}</version>
</dependency>
To install with Gradle here is the line to add to the build.gradle file:
External StoresΒΆ
If you save your embeddings in an external vector store database, you can use the following dependency:(_here we use pinecone but several are available) to learn more please check the integration page
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-pinecone</artifactId>
<version>${project.version}</version>
</dependency>
With Gradle it will translate to:
Last update:
2023-08-31