On-board optical preprocessor on lithium niobate waveguide