langchain4j/embeddings/langchain4j-embeddings-e5-s.../pom.xml

62 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>1.19.0-beta29-SNAPSHOT</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>
<artifactId>langchain4j-embeddings-e5-small-v2</artifactId>
<name>LangChain4j :: Embeddings :: e5-small-v2</name>
<description>In-process e5-small-v2 embedding model</description>
<properties>
<embeddingsSkipDownload>false</embeddingsSkipDownload>
<embeddingsSkipCache>false</embeddingsSkipCache>
</properties>
<dependencies>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-embeddings</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.13.0</version>
<executions>
<execution>
<id>download-model-file</id>
<goals>
<goal>wget</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<skip>${embeddingsSkipDownload}</skip>
<url>https://huggingface.co/Xenova/e5-small-v2/resolve/main/onnx/model.onnx</url>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<outputFileName>e5-small-v2.onnx</outputFileName>
<sha256>b2a43b66f7f9b6f29643a21340ad7c03d2d91e6bd5d43429a77799a9ee880eb0</sha256>
<skipCache>${embeddingsSkipCache}</skipCache>
<!-- 10 minutes -->
<readTimeOut>600000</readTimeOut>
<retries>5</retries>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>