Giter VIP home page Giter VIP logo

Comments (2)

ShreyaR avatar ShreyaR commented on July 21, 2024

Thanks for testing out the library @bluewin4!

This is a pretty interesting suggestion. I think this could be pretty useful. My main concern would be around managing the different prompts for the two LLM API calls. The first prompt should ideally contain the full information around what the content of the answer should be, and the second prompt should contain info about the structure that the content should be formatted into.

One way to implement this could be to have the user continue to write a single rail spec, and then Guardrails compiles the rail spec into the prompt needed for each LLM API call.

Another thing to figure out would be reasking -- reasking would also need to be broken out into reasking for content and reasking for structure.

I'll dig deeper into this and see what the MVP is that I can implement. If you have other suggestions, lmk!

Also, we chatted about this briefly in the discord in case you're interested in following along.

from guardrails.

irgolic avatar irgolic commented on July 21, 2024

I've also found it useful sometimes to invoke a LLM call first, then run guardrails over its result. But for now we've decided to leave this to the user, not as an internal part of the library.

from guardrails.

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.