AI factory architecture