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
..
981c58c234
feat: add golang provider (#1693)
11 months ago
981c58c234
feat: add golang provider (#1693)
11 months ago
981c58c234
feat: add golang provider (#1693)
11 months ago
981c58c234
feat: add golang provider (#1693)
11 months ago
76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
981c58c234
feat: add golang provider (#1693)
11 months ago

README.md

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

To get started:

  1. You must have Go installed and the OpenAI Go client library. Install the OpenAI library with:

    go get github.com/sashabaranov/go-openai
    
  2. Set your OPENAI_API_KEY environment variable.

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

  4. No need to compile the Go plugin separately. The provider will be compiled and run automatically.

  5. Run the following commands:

    cd examples/golang-provider
    npx promptfoo@latest eval
    
  6. View the results:

    npx promptfoo@latest view
    

Note: This implementation now works on all platforms supported by Go, including Windows, Linux, and macOS.

Tip!

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

Comments

Loading...