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

add langchain llm math chain #631

Merged

Conversation

hwchase17
Copy link
Contributor

Add LLMMath chain as a completion function

Is a bit of misnomer, because it is basically and LLM plus PythonREPL, so can solve more than math problems

oaieval langchain/chains/llm_math bigrams --max_samples 20 gives me an accuracy of 100%

Example on a single input:

Screenshot 2023-04-10 at 10 48 02 PM

Copy link
Contributor

@andrew-openai andrew-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the example! Very cool to see it ace the bigrams eval.

@andrew-openai andrew-openai merged commit 2675cbc into openai:main Apr 11, 2023
Linmj-Judy pushed a commit to TablewareBox/evals that referenced this pull request Feb 27, 2024
Add LLMMath chain as a completion function

Is a bit of misnomer, because it is basically and LLM plus PythonREPL,
so can solve more than math problems

`oaieval langchain/chains/llm_math bigrams --max_samples 20` gives me an
accuracy of 100%

Example on a single input:

<img width="1043" alt="Screenshot 2023-04-10 at 10 48 02 PM"
src="https://user-images.githubusercontent.com/11986836/231067743-f34b7458-0a68-4d84-9489-8a4f61756b95.png">
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.

None yet

2 participants