The F6 function give command of all your troops to the AI. Your army composition affect how the AI gonna command your troops. they alway gonna make 2 groups of cavalry for cover each flank and charge horse archer who come close or when hostilities between infantry/archer begin.