-
Notifications
You must be signed in to change notification settings - Fork 593
Probabilities for choices #1230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you give us the address to the forked repo? |
Yeah, I believe this would address it partially. As you note it's quite difficult to get probabilities for the whole sequence, as you would need to understand in the state machine when a choice is fully determined. As an example, for choices At the point a token beginning with For trivial choice sets this isn't that bad, but big and potentially ambiguous schemas could be difficult to calculate. If you did actually implement this, you get various other superpowers elsewhere in the code, such as knowing the probability that a field was generated inside JSON, i.e. class Choice(BaseModel):
thing: Literal['a', 'b', 'c']
number: int = Field(ge=0, le=10) You could potentially get the probabilities for the fields |
I have seen multiple issues on this and one forked repo but can someone please clearly point me to where the code I need is to run the outlines structured inference (choices) with probabilities on the outputs.
Thanks so mcuh
The text was updated successfully, but these errors were encountered: