pub fn apply_output_dim<E: TextEmbedder + 'static>( inner: E, dim: Option<usize>, ) -> Result<Box<dyn TextEmbedder>>