Adding code to allow for document repositories by training_id