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

AI-enabled schema generation #35

Open
siliconlad opened this issue Feb 5, 2024 · 0 comments
Open

AI-enabled schema generation #35

siliconlad opened this issue Feb 5, 2024 · 0 comments
Labels
enhancement New feature or request low 🏖️ Low priority item

Comments

@siliconlad
Copy link
Member

siliconlad commented Feb 5, 2024

Using the power of GPT-4 (or other models), generate schemas for functions.

There are two possible flavours:

  1. Take the function code and the constructed schema (without AI) and then pass it to GPT-4 to optimise the descriptions and type hints to ensure the best description of the function for the lowest number of tokens.
  2. Take the function code and fill in the descriptions and/or type hints automagically.

Would require the user to provide their own API key though.

There would also need to be a caching element, because you don't want to call GPT-4 every time.

  1. You could just call it once when the program is run. This will work fine if it is meant to be a long running program (like a web server or something). Not ideal for scripts and the like, especially if they're run often.
  2. You could physically cache them, and then has the function to check if the function has been updated before sending it off to GPT-4. Seems like the best option, but more involved.
@siliconlad siliconlad added enhancement New feature or request low 🏖️ Low priority item labels Feb 5, 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 low 🏖️ Low priority item
Projects
None yet
Development

No branches or pull requests

1 participant