hybrid ai architecture complex query offloading