mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 02:46:57 +00:00
- Add HNSW index on asset_embeddings.embedding using vector_cosine_ops (m=16, ef_construction=64) with hnsw.iterative_scan=relaxed_order for efficient filtered ANN queries - Create ICU numeric collation and alter assets.name column to use it for natural sort (file2 < file10 instead of lexicographic ordering) - Add B-tree index on assets.name with numeric collation for sort performance - Add schema @@index annotations to match migration index names - Add 7 tests verifying natural sort behaviour in both AssetService.listChildren and SearchService.search (Prisma ORM and raw-SQL paths)