Text this: Tensor databases empower AI for science: A case study on retrosynthetic analysis