Text this: Resource-efficient photonic networks for next-generation AI computing