Skip to content

Commit

Permalink
Add Maven config for native image compilation (#26)
Browse files Browse the repository at this point in the history
Native image currently does not work with Qdrant embedding store, see
quarkiverse/quarkus-langchain4j#1216.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Jan 13, 2025
1 parent 896cca9 commit d1e529d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,5 @@ LLAMARA backend exposes four REST endpoints according to the [Eclipse Microprofi
## Known Issues

- Filtering embeddings by permissions in the retrieval step only works if knowledge has only a single permission set.
The contains filter from <https://github.com/langchain4j/langchain4j/pull/2344> is needed to properly implement permissions in the retrieval step.
- Native image does not work with Qdrant embedding store, see <https://github.com/quarkiverse/quarkus-langchain4j/issues/1216>.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
<goal>native-image-agent</goal>
</goals>
</execution>
</executions>
Expand Down Expand Up @@ -257,6 +258,7 @@
<configuration>
<argLine>-javaagent:${org.mockito:mockito-core:jar}</argLine>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
Expand Down Expand Up @@ -334,4 +336,19 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
</project>

0 comments on commit d1e529d

Please sign in to comment.