Live data from Hacker News

Viewing profile — hellovai

hellovai

HN member
Joined
Wed, Mar 05, 2014, 7:26 PM UTC
HN karma
154
Public activity
46 items

About hellovai

Author @ github.com/boundaryml/baml

Structured LLM parsing that works 100% of the time

Email is: vbv [dot] boundaryml [dot] com

Recent public activity

  1. comment
    Comment #46346553

    (on of the creators of BAML here) yep! exactly! that workaround we've found works quite well, but the problem is that its not sufficient to just retry in the case of failed schema …

  2. story
  3. job
  4. comment
    Comment #45350905

    if you haven't tried the research -> plan -> implementation approach here, you are missing out on how good LLMs are. it completely changed my perspective. the key part was really j…

  5. comment
    Comment #45348004

    Have you tried techniques that don’t require modifying the LLM and the sampling strategy for structure outputs? For example, schema aligned passing, where you build error tolerance…

  6. comment
    Comment #44338516

    if you share your prompt with me on promptfiddle.com i can play around with it and see how i can make it better!

  7. comment
    Comment #44338509

    its a bit more nuanced than applicative lifting. parts of of SAP is that, but there's also supporting strings that don't have quotation marks, supporting recursive types, supportin…

  8. comment
  9. comment
    Comment #44338389

    appreciate you tyring it. the reason it dropped the day was due to your type system not being understood by the LLM you're using. the model replied with { "Text": "coffee liqueur",…

  10. comment
    Comment #44322772

    have you tried schema-aligned parsing yet? the idea is that instead of using JSON.parse, we create a custom Type.parse for each type you define. so if you want a: class Job { compa…

  11. comment
    Comment #43713946

    really cool to see BAML on here :) 100% align on so much of what you've said here. its really about treating LLMs as functions.

  12. comment
    Comment #43020501

    yea! even deepseek. Calling an external function / tool calling is really just a data extraction problem. say you have a tool: def calculator(expr: str) -> float then the model jus…

  13. story
  14. story
    Show HN: GitHub Wrapped – analyzing every file change in every commit

    hey all! Vaibhav and Ethan here. We asked a silly question, "what if you attempted to look into every commit of every repo?" and over the holidays ended up building something kind …

  15. story
    Show HN: PromptFiddle – Open-source WASM-based LLM playground

    Hey HN, We made an LLM Playground where you can use jinja to render prompts and extract structured data. For example, receipts, invoices, audio snippets, etc. It uses the BAML prog…

  16. comment
    Comment #41295622

    i 100% percent agree. people get so caught up on trying to do everything 90% right with AI, but they forget there's a reason most websites offer at least 2 9's of uptime.

  17. comment
    Comment #41250786

    We have some preliminary data with llama3.1 and we find that the smaller model gets to around 70% with BAML (+20% from base), but we'll update this dashboard with llama3.1 by end o…

  18. story
  19. comment
    Comment #41182244

    Take a look at BAML (boundaryml.com) Its a different take that leverages a DSL to make prompting cleaner and fixes a few other ergonomic issues along the way. you can try it online…

  20. comment
    Comment #40715606

    nothing specific, but you can try our prompt / datamodel out on https://www.promptfiddle.com or if you're open to share your prompt / data model with, I can send over my best guess…

  21. comment
    Comment #40715395

    we recently added dynamic type support with this snippet! (docs coming soon!) Python: https://github.com/BoundaryML/baml/blob/413fdf12a0c8c1ebb75c... Typescript: https://github.com…

  22. comment
    Comment #40715310

    oh thats really interesting, how often do you get errors like that? fyi, we actually fix those specific errors in our parser :)

  23. comment
    Comment #40715292

    The main drawback is really when you attempt to do more advanced prompting techniques like chain-of-thought or reasoning. forcing those parts to be json, can be hard and unnecessar…

  24. comment
    Comment #40715145

    ;) https://www.promptfiddle.com/structured-summary-66myE (sorry bad syntax highlighting when including baml code in baml code) { author: "Sam Lijin" key_points: [ "Structured outpu…

  25. comment
    Comment #40715066

    that's a great question, there's three main benefits: 1. seeing the full prompt, even though that python code feels leaner, somehow you need to convert it to a prompt. a library wi…