Given a Riemannian manifold $(M,g)$, I know $\langle X_1,X_2\rangle_g$ is defined for vector fields $X_1,X_2$: it is used to denote the inner product $g_p(X_1|_p,X_2|_p)$ with $p$ running through $M$. But what if we are given a symmetric $2$-tensor field $h$ and asked to define $\langle\mathrm{Ric},h\rangle_g$? $\mathrm{Ric}$ is the Ricci tensor, which is also a symmetric $2$-tensor field. I saw this mysterious notation in articles about linearization of the scalar curvature but have no idea about it.
Let's generalize the result and consider any pair of covariant $2$-tensor fields $h_1,h_2$. An analogy with $\langle X_1,X_2\rangle_g$ leads me to think about $$g_p(h_1|_p,h_2|_p).$$ Literally, both $h_1|_p$ and $h_2|_p$ are covariant $2$-tensors, which are typically viewed as bilinear forms on $T_p M$ rather than vectors in $T_p M$. That way, how do I make sense of their inner product under $g_p$? Thank you.
Edit 1. I came across this notation in Geometric Relativity written by Dan A. Lee, but it can be found in many articles talking about deformations, and strangely these articles just don't give further explanations to this notation, which is why I'm here. Okay, let me enclose a snapshot of Lee's book:
Edit 2. If one follows the book by John M. Lee to learn Riemannian geometry, he/she can go to Proposition 2.40 of the 2nd edition for detailed explanations.

It simply means the contraction their respective indices:
$$R_{\alpha \beta} h^{\alpha \beta}$$
or any other equivalent contraction.
Abstract notation is not very practical beyond a certain (very low) threshold.