-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Adds a chain around sympy for symbolic math #6834
Adds a chain around sympy for symbolic math #6834
Conversation
sreiswig
commented
Jun 27, 2023
- Description: Adds a new chain that acts as a wrapper around Sympy to give LLMs the ability to do some symbolic math.
- Dependencies: SymPy
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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.
nice this is really cool
seems cargo culted from LLMMath chain, but no need to keep around all the deprecated values
""" | ||
|
||
llm_chain: LLMChain | ||
llm: Optional[BaseLanguageModel] = None |
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.
if deprecated, lets not include
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.
Removed in latest commit
arbitrary_types_allowed = True | ||
|
||
@root_validator(pre=True) | ||
def raise_deprecation(cls, values: Dict) -> Dict: |
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.
dont include, same reason as above
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.
Removed in latest commit
Adds PyTest.mark.requires("sympy") to tests that require sympy.
thanks @sreiswig! |