Definition 16.3.6. Let \(C\) be a locally small category with small filtered colimits. An object \(X\) of \(C\) is compact if the functor \[ C\to\An\ , \quad Y\mapsto\Hom_C(X,Y) \] commutes with small filtered colimits.

From Section 16.3, Filtered colimits of categories.