Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago
..
db3a962d6a
Improve support for running external scripts as providers (#55)
2 years ago
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
bfa8a39a8a
docs(examples): add OpenAI Agents SDK example (#4006)
3 months ago
f5b2d050f5
update langchain example to compare with gpt-4
2 years ago
becfa34b34
docs: standardize file references to use file:// scheme (#4291)
2 months ago
c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago

README.md

You have to be logged in to leave a comment. Sign In

langchain-python (Langchain Python)

You can run this example with:

npx promptfoo@latest init --example langchain-python

This example shows how to run a Python (LangChain) chain implementation with Promptfoo. It compares GPT-4 versus LangChain's LLM Math module.

To run it, first create a virtual env and install the requirements:

Then activate the virtual env.

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Then run the eval:

npx promptfoo eval
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...