Gerstenhaber's paper Algebraic Cohomology and Deformation Theory introduces relative Hochschild cohomology, which I have never seen before:
Let $k$ be a field. Let $A$ be an associative, unital $k$-algebra, $S\subseteq A$ a subalgebra. Let $M$ be an $A$-bimodule. We define $C^n(A,S;M)$ the $S$-relative Hochschild $n$-cochains with coefficients in $M$: Let $C^0(A,S;M):=\{m\in M \vert sm=ms \ \forall s\in S\}$ be the commutant. For $n>0$, we let $C^n(A,S;M)$ be those $k$-linear maps $A^{\otimes_k n}\rightarrow M$ satisfying $$f(sa_1,\ldots,a_n)=sf(a_1,\ldots,a_n)$$ $$f(a_1,\ldots,a_ns)=f(a_1,\ldots,a_n)s$$ $$f(\ldots,a_is,a_{i+1},\ldots)= f(\ldots,a_i,sa_{i+1},\ldots)$$ for all $a_i\in A$, $s\in S$. Then we consider the usual Hochschild coboundary map, turning $C^{\ast}(A,S;M)$ into a cochain complex. The cohomology of this complex is called $S$-relative Hochschild cohomology
In what contexts is the above generalization of Hochschild cohomology used/useful? Why is this a good definition? Is there a more conceptual description of this cohomology? Why is this called relative cohomology? Is there a relationship to relative singular cohomology in algebraic topology? Doesa similar generalization of Hochschild homology exist?
This is useful, for example, when the subalgebra S is separable. In that case it actually coincides with the normal Hochschild cohomology of A.
You could ask... why bother then? Well, the complex is much much smaller in general, so it is easier to deal with.
A good example of that is when A is an admissible quotient of the path algebra on a quiver and S is the subalgebra generated by the vertices, which is separable. Then the theory tells you that you can compute the cohomology of A using the bar complex as a resolution but with the tensor products taken over S — this is the complex Najonathan calls the relative bar resolution in their answer.
If you write down what exactly is that complex in this case you will appreciate what changes.