Skip to content

Commit 434a1f7

Browse files
committed
- Refactor: Add document parsing and secure RAG creation
This commit introduces significant new features for creating and managing Retrieval-Augmented Generation (RAG) sources, focusing on document parsing and enhanced security. - **feat(rag): Add secure RAG creation screen** - New UI for creating encrypted and password-protected RAGs. - Supports admin and read-only user credentials. - Allows configuration of loading modes (Embedded vs. Transient). - **feat(parser): Implement multi-format document parser** - Adds a `DocumentParser` utility to extract text from various file types. - Supported formats include PDF, DOC, DOCX, XLS, XLSX, EPUB, and TXT. - Integrates Apache POI, PDFBox-Android, and Epublib libraries. - **feat(rag): Add RAG data viewer** - Introduces `RagDataReaderActivity` to inspect the contents and structure of a RAG file. - Provides a view of nodes, their content, metadata, and connections. - Supports viewing both encrypted and unencrypted RAGs. - **feat(math): Greatly expand LaTeX/Typst rendering** - Adds over 200 new mathematical symbols to the Markdown renderer for improved LaTeX/Typst support. - Implements rendering for `\mathbb` (blackboard bold), `\mathcal` (calligraphic), accents (`\hat`, `\vec`), and spacing commands. - Extends superscript and subscript character mappings. - **refactor(ui): Improve RAG management UI/UX** - Redesigns RAG list items with clearer action buttons (`Load`, `Unload`, `Share`, `Delete`, `View Data`). - Standardizes button styles across the RAG management and creation screens using `FilledTonalButton` and custom `ActionButton` components. - Adds an "Import Neuron Package" button directly to the main RAG screen. - **build: Add document parsing dependencies and ProGuard rules** - Includes dependencies for Apache POI, PDFBox-Android, and Epublib. - Updates ProGuard rules to retain necessary classes for the new libraries.
1 parent 1404bd3 commit 434a1f7

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ android {
2222
applicationId = "com.dark.tool_neuron"
2323
minSdk = 31
2424
targetSdk = 36
25-
versionCode = 14
26-
versionName = "1.1.0-Rag+Letex"
25+
versionCode = 15
26+
versionName = "1.1.1-Rag+Letex"
2727
ndk {
2828
abiFilters += listOf("arm64-v8a", "x86_64")
2929
}

app/proguard-rules.pro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@
142142
-dontwarn org.slf4j.**
143143
-dontwarn org.xmlpull.**
144144

145+
# Log4j2 (suppress optional OSGi and aQute.bnd dependencies)
146+
-dontwarn aQute.bnd.annotation.spi.ServiceConsumer
147+
-dontwarn aQute.bnd.annotation.spi.ServiceProvider
148+
-dontwarn org.osgi.framework.Bundle
149+
-dontwarn org.osgi.framework.BundleContext
150+
-dontwarn org.osgi.framework.FrameworkUtil
151+
-dontwarn org.osgi.framework.ServiceReference
152+
145153
# -- Retrofit & OkHttp --
146154
-keep class retrofit2.** { *; }
147155
-keepclasseswithmembers class * {

memory-vault/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ android {
4343
jvmTarget.set(JvmTarget.JVM_17)
4444
}
4545
}
46+
packaging {
47+
jniLibs {
48+
useLegacyPackaging = true
49+
}
50+
}
4651
}
4752

4853
dependencies {
4954
implementation("org.lz4:lz4-java:1.8.0")
5055
implementation(libs.androidx.core.ktx)
5156
implementation(libs.androidx.appcompat)
5257
implementation(libs.androidx.material)
53-
testImplementation(libs.junit)
54-
androidTestImplementation(libs.androidx.junit)
55-
androidTestImplementation(libs.androidx.espresso.core)
5658
}

neuron-packet/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ android {
5454
jvmTarget.set(JvmTarget.JVM_17)
5555
}
5656
}
57+
packaging {
58+
jniLibs {
59+
useLegacyPackaging = true
60+
}
61+
}
5762
}
5863

5964
dependencies {
6065
implementation("org.lz4:lz4-java:1.8.0")
6166
implementation(libs.androidx.core.ktx)
6267
implementation(libs.androidx.appcompat)
6368
implementation(libs.androidx.material)
64-
testImplementation(libs.junit)
65-
androidTestImplementation(libs.androidx.junit)
66-
androidTestImplementation(libs.androidx.espresso.core)
6769
}

0 commit comments

Comments
 (0)