A foundation model for human-AI collaboration in medical literature mining