Skip to content

Use Outlines from .txt to replace strictValidation #9

@Chinoman10

Description

@Chinoman10

https://github.com/dottxt-ai/outlines

Essentially, why would you need a strictValidation parameter when you can literally enforce it?

Outlines enables exactly that! The output can be clearly defined with a JSON schema or Pydantic model, or even RegEx!

Running sentiment analysis and just want either 'Positive' or 'Negative'? Easy! Just create a tuple with the possible outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions