Vaibhav Gupta’s Post

View profile for Vaibhav Gupta, graphic

CEO @ Boundary | Ex-Google

Have you ever tried to ensure the answer an LLM was giving you was accurate? Here's how we did it with BAML. (Link to repo below!) ✅ Do provide some UI so your users know what part of the sentence is verifiable vs those parts which are not ✅ Do ask the LLM to give you sections from the original text it used to answer the question ✅ Do use good formatting for injecting your RAG examples into the prompt (don't just JSON.stringify(...)) ❌ Do NOT expect the answer to be 100% correct (or imply that to your users!) ❌ Do NOT ask the LLM to say "I don't know" and check for that in your code ❌ Do NOT expect the citations the LLM gives to be an exact match (it modify spacing and/or case, merge nearby sentences, etc.) Use Fuzzing Matching like BAML! Demo it yourself: https://lnkd.in/gaJ99XVC Repo: https://lnkd.in/gQ5ixASN

To view or add a comment, sign in

Explore topics