-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[FIX] faulty imports when using PydanticProgramMode.LM_FORMAT_ENFORCER #11355
[FIX] faulty imports when using PydanticProgramMode.LM_FORMAT_ENFORCER #11355
Conversation
try: | ||
from llama_index.program.lmformatenforcer import ( | ||
LMFormatEnforcerPydanticProgram, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the # pants: no-infer-dep
comment at the end of this import? (Similar to other 3rd party imports in core)
This helps avoid pants detecting this as a dependency when testing, making the venv smaller for core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry just seeing this now. on it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that did the trick - all checks have passed now :)
Description
PydanticProgramMode.LM_FORMAT_ENFORCER
needs integrationllama-index-program-lmformatenforcer
but when trying to lazy import it from core, it tries to load from ... core :)Fixes #11351
Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration