Hopefully, @jerednel can add more details.
My retriever functions will typically use metadata in combination with the similarity search to do impart some sort of influence or for reranking.
Hopefully, @jerednel can add more details.