#1317·paper-qa

LiteLLM unnecessary memory usage when only trying to use paper metadata features

Author: microfaunaCreated Mar 17, 2026Updated Apr 29, 2026

Hello! I am attempting to only use paper metadata lookup - but PaperQA imports LMI / LiteLLM no matter what, incurring a ~100MB memory penalty. It's imported in init.py even when I only have from paperqa.clients import DocMetadataClient

Image

Is there a way around this? Maybe scoping imports a little tighter.