I did something similar to the author and my impression is that the JVM is not the bottleneck. The search engine is 75 GB SQLite db with full text search. The hot loops all live in the native code: SQLite C for postings and BM25, ONNX Runtime for the reranker. Kotlin is the glue, scoring the finalists and the HTTP side, for this it works fine.
Comment thread (1)