The Crown Prosecution Service (CPS) said it was working with Derbyshire Police to investigate the use of AI by an officer.