We extend the Erdős--Gyárfás function from ordinary edge-colorings to set-colorings. For integers n≥p≥3, s≥1, and 1≤q≤s(2p), let fs(n,p,q) denote the minimum integer r≥s for which there is an assignment of an s-subset of {1,…,r} to each edge of Kn such that the union of the assigned sets on every copy of Kp has size at least q. For fixed p,s,q with $s