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 76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
..
4d19defa47
feat: add a `python` provider that supports native python function calls (#419)
1 year ago
a3d5746299
feat: support calling specific function from python provider (#1053)
1 year ago
76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
21f4d639b2
docs: update model references from gpt-3.5-turbo to gpt-4o-mini (#1655)
11 months ago
fc5d050505
chore(deps): bump idna from 3.6 to 3.7 in /examples/python-provider (#1957)
10 months ago

README.md

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

To get started:

  1. You must have the OpenAI SDK installed for this example to work.

    pip install openai
    

    Refer to requirements.txt for a full list of dependencies.

  2. Set your OPENAI_API_KEY environment variable.

  3. Edit promptfooconfig.yaml with your custom prompts and assertions.

  4. Run the following commands:

    cd examples/python-provider
    npx promptfoo@latest eval
    
  5. View the results:

    npx promptfoo@latest view
    
Tip!

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

Comments

Loading...