Is there any local version of an AI that can do this sort of thing?
The only complicated bit is the PDF indexing. I would personally suggest using a proper cloud model in a massive datacenter to do it if the source is even a bit fuzzy. (lots of tables, fancy layouts etc). A "normal" PDF can just be converted to markdown in seconds.
After that the local stuff can be managed by any local model that has a tool to use bash or read files.
I have a Discord bot that can ingest a RPG PDF and stores it in a sqlite vector database for search, took me maybe an evening to build it with Claude.