Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make importing faster #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: make importing faster #86

wants to merge 1 commit into from

Conversation

lsorber
Copy link
Member

@lsorber lsorber commented Jan 7, 2025

Main offenders that make import raglite slow:

  1. import litellm takes ~1s ([Feature]: Improve import speed BerriAI/litellm#7605).
  2. Loading a BaseSettings takes ~1s.

This PR changes the exports so that BaseSettings are only loaded when actually using the CLI. After this PR, import raglite should be reduced to about ~1.9s.

@lsorber lsorber self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant