Skip to content
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

add enum type for LLM output types #201

Open
shreyashankar opened this issue Nov 19, 2024 · 0 comments
Open

add enum type for LLM output types #201

shreyashankar opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or request good first engineering issue Engineering-focused issue for newcomers

Comments

@shreyashankar
Copy link
Collaborator

Users want to be able to add enum type outputs for operations. For example, a multi class classifer.

The interface can look something like

output:
  schema:
    insights: "list[{insight: string, confidence: number}]"
    metadata: "{timestamp: string, source: string}"
    status: "enum[pending,in_progress,completed]"

We'd have to figure out how to convert it to openapi-compatible schemas, and include this logic here so the LLM reads the enum correctly.

We'd also have to modify the front-end to support enum types, but we can do that in a separate PR.

@shreyashankar shreyashankar added enhancement New feature or request good first engineering issue Engineering-focused issue for newcomers labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first engineering issue Engineering-focused issue for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant