Skip to content

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

Description

@microfauna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions