Skip to content

Commit

Permalink
build(adaptive-rag): add exec tasks
Browse files Browse the repository at this point in the history
- upsert: Populate Chroma Vector store
- chroma: start Chroma Server
- app: start demo app
  • Loading branch information
bsorrentino committed Jun 20, 2024
1 parent 47ec3b4 commit 985275c
Showing 1 changed file with 44 additions and 10 deletions.
54 changes: 44 additions & 10 deletions adaptive-rag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,54 @@
<version>3.3.0</version>
<executions>
<execution>
<id>upsert</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}/src/main/docker</workingDirectory>
<arguments>
<argument>compose</argument>
<argument>up</argument>
<argument>upsert</argument>
<argument>-d</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>chroma</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}/src/main/docker</workingDirectory>
<arguments>
<argument>compose</argument>
<argument>up</argument>
<argument>chroma</argument>
<argument>-d</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>app</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>dev.langchain4j.adaptiverag.AdaptiveRag</argument>
</arguments>
<environmentVariables>
</environmentVariables>
</configuration>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>dev.langchain4j.adaptiverag.AdaptiveRag</argument>
</arguments>
<environmentVariables>
</environmentVariables>
</configuration>
</plugin>

<plugin>
Expand All @@ -116,6 +149,7 @@
<sourceDirectory>src/main/java</sourceDirectory>
</configuration>
</plugin>

</plugins>
</build>
</project>

0 comments on commit 985275c

Please sign in to comment.