In general, a system composed of $K$ interacting subsystems have a potential energy at a specific configuration of its parts. For instance, a system of $M$ nuclei and $N$ electrons can be separated into interacting subsystems with internal geometries, having $\{\mathbf{R}_A\}$ as nuclear positions for subsystem $A$ with $N_A$ electrons, $\{\mathbf{R}_B\}$ and $N_B$ for subsystem $B$, and so on. With all the remainder coordinates accounting for the distance between these subsystems, we can write:
$$
\mathbf{R}=\mathbf{R}_{\text{int}}+\mathbf{R}_{\text{ext}}=\sum_{A}^{K}\left[\sum_{a\in A}\left(\mathbf{R}_a+\sum_{b\in B}\mathbf{R}_{ba}\right)\right]
$$
where $\mathbf{R}_a$ is the position of a nucleus $a$ within the subsystem $A$ (internal coordinates) and $\mathbf{R}_{ba}$ is the distance vector from a nucleus $b$ in the subsystem $B\neq A$ to the nucleus $a$.
According to this, we can write the total energy of the complex as one-system terms, two-system terms, and so on.
$$
E(\{\mathbf{R}\})=\sum_{A}^{K}E_A(\{\mathbf{R}_A\})+\frac{1}{2}\sum_{A}^{K}\sum_{B\neq A}^{K}E_{AB}(\{\mathbf{R}_B-\mathbf{R}_A\})+\dots
$$
where the energy is adjusted to zero (subtracting the energy of the isolated subsystems from $E$) at infinite separation of the subsystems. Then, we can define a potential energy of interaction between the subsystems as
$$
\Delta E(\{\mathbf{R}\})=E(\{\mathbf{R}\})-\sum_{A}^{K}E_A(\mathbf{R}_A)=\frac{1}{2}\sum_{A}^{K}\sum_{B\neq A}^{K}E_{AB}(\{\mathbf{R}_B-\mathbf{R}_A\})+\dots
$$
Now, this interaction energy can be calculated at any $\{\mathbf{R}\}$, however, most of the time we want to calculate the interaction energy at optimized geometries $\{\mathbf{R}^{\text{(opt)}}\}$:
$$
\Delta E=E(\{\mathbf{R}^{\text{(opt)}}\})-\sum_{A}^{K}E_A(\mathbf{R}^{\text{(opt)}}_A)
$$
and this happen to be the binding energy with respect to a specific dissociation route from equilibrium.