Earlier quoted context omitted.
Not associated with this project (or LMQL), but one of the authors of LMQL, a similar project, answered this in a recent thread about it. https://news.ycombinator.com/item?id=35484673#35491123 As a solution to this, we implement speculative execution, allowing us to lazily validate constraints against the generated output, while still failing early if necessary. This means, we don't re-query the API for each token (v…
This is slick -- It's not explicitly documented anywhere but I hope OpenAI has the necessary callbacks to terminate generation when the API stream is killed rather than continuing in the background until another termination condition happens? I suppose one could check this via looking at API usage when a stream is killed early.
A guidance language for controlling LLMs
41–50 of 198 posts
Re: A guidance language for controlling LLMs
#42Earlier quoted context omitted.
If this comment performative comedy? Are these real technologies ?
Not quite sure what the spirit of your comment is. But, yes, they are real technologies. Very confused as to why you would even find that dubious.
Anyway, I’m not surprised. It’s a new market, everyone’s in on it.
Re: A guidance language for controlling LLMs
#43Earlier quoted context omitted.
If this comment performative comedy? Are these real technologies ?
Not quite sure what the spirit of your comment is. But, yes, they are real technologies. Very confused as to why you would even find that dubious.
Re: A guidance language for controlling LLMs
#44Re: A guidance language for controlling LLMs
#45Earlier quoted context omitted.
This is slick -- It's not explicitly documented anywhere but I hope OpenAI has the necessary callbacks to terminate generation when the API stream is killed rather than continuing in the background until another termination condition happens? I suppose one could check this via looking at API usage when a stream is killed early.
Yeah I did a CLI tool for talking to ChatGPT. I'm pretty sure they stop generating when you kill the SSE stream, based on my anecdotal experience of keeping ChatGPT4 costs down by killing it as soon as i get the answer I'm looking for. You're right that it's undocumented behavior though, on a whole the API docs they give you are as thin as the API itself.
Re: A guidance language for controlling LLMs
#46Basically instructing the templating engine (a very crude regex) to replace session variables, database lookups to the merge fields:
Hello {{firstname}}!
1996 and 2023 smells alike.
Re: A guidance language for controlling LLMs
#47Re: A guidance language for controlling LLMs
#48There has been a huge explosion of awesome tooling which utilizes constrained text generation. Awhile ago, I tried my own hand at constraining the output of LLMs. I'm actively working on this to make it better, especially with the lessons learned from repos like this and from guidance https://github.com/hellisotherpeople/constrained-text-genera...
This looks incredible. Wow.
- https://github.com/newhouseb/clownfish
- https://github.com/r2d4/rellm
The first one is JSON only and the second one uses regular expressions, but they both take the same "logit masking" approach as the project GP linked to.
Re: A guidance language for controlling LLMs
#49Earlier quoted context omitted.
If this comment performative comedy? Are these real technologies ?
Not quite sure what the spirit of your comment is. But, yes, they are real technologies. Very confused as to why you would even find that dubious.
React, Supabase, Next, Kafka, Redis
I mean, IMO "LangChain" is kind of a silly name but I feel like there's nothing to see here.