I throw all documents into Calibre [1]. It can extract metadata from files and extend them from online sources. It has a lot of related plugins too.
As a plus it can convert to make the document book reader friendly. There are web applications capable of reading calibres meta-data files and allowing to share the library.
1: https://calibre-ebook.com/