Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

README.md 491 B

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...