How to incorporate document metadata?

Hi @ines

Do you have an example of that implementation somewhere? Sounds like what I'd need, thanks.