A project like https://github.com/Frost-group/The-Oracle-of-Zotero or https://github.com/neuml/paperai could be helpful. You could use langchain to run a local model instead of using OpenAI or Anthropic. Put research papers in, and it should create a QA system for them.