Repository navigation
feat: pure-visual MobileCLIP embeddings + query-intent ranking - #5
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MobileClipOnnxEncoder.kt): Stores purerunVisionTower(bitmap)embeddings in the CLIP image cone (removing the0.22 * ocrTextEmbedtext-cone blend) so pure photos and text-bearing screenshots are ranked apples-to-apples by visual cosine similarity, while OCR text is searched via SQLite FTS5 BM25.RecallDatabase.kt): Distinguishes code/numeric/identifier queries (4829,1Z999...,$27.50,Gate B14) from descriptive visual queries (blue van,misty lake), suppressing unrelated visual-only noise on exact code hits and calibrating CLIP cross-modal cosine scores cleanly.DB_VERSION = 6): Automatically re-indexes existing screenshots with pure-visual MobileCLIP-S0 embeddings.Verification
./gradlew --no-daemon testDebugUnitTest assembleDebug bundleDebug— 18/18 unit & Robolectric tests PASS../scripts/check-zero-permissions.sh— 0<uses-permission>in source manifest, 0 platform permissions in merged manifests & APK../scripts/check-16k-alignment.sh— all 4 native libsZIP_STORED,PT_LOAD 0x4000,zipalign -P 16PASS../scripts/clean-room-audit.sh— PASS across 59 files (0 errors).4829returns the exact singleGuest Wi-Ficard (69% match,0false positives) and visual queries surface real photos at the top.