Code Monkey home page Code Monkey logo

Comments (6)

typpo avatar typpo commented on June 12, 2024 1

Hey @streichsbaer,

#482 starts the work on this. A couple areas where I'm seeking feedback

  • I've made chosen and rejected string arrays rather than strings, because some users have multiple columns. Does that make sense to you, or does it make ingesting this data more cumbersome?
  • I am assuming that system and question are test case vars. Does that match workflow? I'm wondering if there is a better way to do this more generically. I could just add the vars map to the object.

from promptfoo.

typpo avatar typpo commented on June 12, 2024

This is an interesting idea, and you're right that we essentially have all the information already. What is the simplest implementation that would be useful to you? e.g. an "export" button or command that outputs {prompt, response, preferred} in a machine-readable format?

from promptfoo.

streichsbaer avatar streichsbaer commented on June 12, 2024

Glad to hear it!

Yes, an "export" button that produces a file with this format.

[
    {
        "system": "You are an AI assistant...",
        "question": "Generate an approximately...",
        "chosen": "Midsummer House is a moderately...",
        "rejected": " Sure! Here's a sentence that..."
    },
    ...
]

User experience considerations

Evals for 2 models
  • Allow setting a thumbs up for an entire column (e.g. auto-choose GPT-4 vs GPT-3.5)
  • Allow filtering/exporting for only failed test cases, where it would automatically select the passing one as chosen and the failing one as rejected.

from promptfoo.

streichsbaer avatar streichsbaer commented on June 12, 2024

Hi @typpo, thanks for that, and sorry for the late response.

  • Strings should be fine for chosen and rejected, but having string arrays is ok too. The post-processing of this is not an issue.
  • Correct, the system and question are the test case vars. Adding the vars map to the object is a good idea, then there is more flexibility in the post-processing steps.

from promptfoo.

typpo avatar typpo commented on June 12, 2024

This feature is released in 0.50.0. Thanks and let me know if you have any more feedback!

image

from promptfoo.

streichsbaer avatar streichsbaer commented on June 12, 2024

Awesome, thanks @typpo 🙏

from promptfoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.