Inference in ai