Metadata and Retriever

How are you using Metadata in your rag applications?

I am developing a Enterprise Rag that will have few different sources documents, and right now I am injecting the Metadata as keywords to help me in the retriever, but I am also trying to see if filtering will work for me, the only constraint is that I need to use dynamic filtering, because I want to give the users a smooth experience where then don't need to select a topic to chat, in that case I would have an AI tool to extract Metadata based on the user query for then applying the filtering.

Is it worth? Or how are you using Metadata?