Skip to content

Commit

Permalink
2024.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlasov committed Jun 23, 2024
1 parent 9a67e84 commit e229c09
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 27 deletions.
8 changes: 4 additions & 4 deletions architecture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>architecture</artifactId>
<packaging>jar</packaging>
<name>Nasdanika RAG Architecture</name>
Expand All @@ -12,7 +12,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<version>3.13.0</version>
<configuration>
<source>17</source>
<target>17</target>
Expand All @@ -21,7 +21,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<version>3.3.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>org.nasdanika.models.architecture</groupId>
<artifactId>processors</artifactId>
<version>2024.5.1</version>
<version>2024.6.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand Down Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>org.nasdanika.models.pdf</groupId>
<artifactId>model</artifactId>
<version>2024.5.1</version>
<version>2024.6.0</version>
</dependency>
</dependencies>
</project>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ public class TestPdfTextSplitter {

private static final File TEST = new File("C:\\Users\\Pavel\\Downloads\\togaf-standard-10th-edition-fc-evaluation-bundle-2023-04\\C220-Part1e.pdf");

@Test
public void testEncodeHelloWorld() {
EncodingRegistry registry = Encodings.newDefaultEncodingRegistry();
Encoding enc = registry.getEncoding(EncodingType.CL100K_BASE);
IntArrayList encoded = enc.encode("Hello, World!");
for (Integer token: encoded.boxed()) {
IntArrayList tokens = new IntArrayList();
tokens.add(token);
System.out.println(token + " '" + enc.decode(tokens) + "'");
}
}

@Test
public void testPdfTextSplitter() throws Exception {
EncodingRegistry registry = Encodings.newDefaultEncodingRegistry();
Expand Down
2 changes: 1 addition & 1 deletion generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand Down
6 changes: 3 additions & 3 deletions model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand All @@ -16,7 +16,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.2</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.ecore</artifactId>
<version>2.35.0</version>
<version>2.36.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.core</groupId>
Expand Down
4 changes: 2 additions & 2 deletions open-ai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-openai</artifactId>
<version>1.0.0-beta.8</version>
<version>1.0.0-beta.9</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
6 changes: 3 additions & 3 deletions playground/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand All @@ -15,12 +15,12 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-openai</artifactId>
<version>1.0.0-beta.8</version>
<version>1.0.0-beta.9</version>
</dependency>
<dependency>
<groupId>org.nasdanika.rag</groupId>
<artifactId>core</artifactId>
<version>2024.5.1</version>
<version>2024.6.0</version>
</dependency>
</dependencies>
</project>
Expand Down
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.nasdanika.rag</groupId>
<artifactId>parent</artifactId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<packaging>pom</packaging>
<name>Retrieval Augmented Generation</name>
<description>Abstractions and implementations for RAG in Java</description>
Expand All @@ -23,10 +23,10 @@
<url>rag.nasdanika.org</url>

<properties>
<core.version>2024.5.1</core.version>
<html.version>2024.5.1</html.version>
<models.ecore.version>2024.5.1</models.ecore.version>
<jacoco.version>0.8.11</jacoco.version>
<core.version>2024.6.0</core.version>
<html.version>2024.6.0</html.version>
<models.ecore.version>2024.6.0</models.ecore.version>
<jacoco.version>0.8.12</jacoco.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
</properties>
Expand All @@ -44,7 +44,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<version>3.3.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -56,12 +56,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M13</version>
<version>4.0.0-M15</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<version>3.13.0</version>
<configuration>
<source>17</source>
<target>17</target>
Expand All @@ -70,7 +70,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -83,7 +83,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<version>3.7.0</version>

<executions>
<execution>
Expand Down Expand Up @@ -171,7 +171,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
2 changes: 1 addition & 1 deletion processors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.nasdanika.rag</groupId>
<version>2024.5.1</version>
<version>2024.6.0</version>
<artifactId>parent</artifactId>
<relativePath>..</relativePath>
</parent>
Expand Down

0 comments on commit e229c09

Please sign in to comment.