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

Feature - Classifier #695

Merged
merged 3 commits into from Mar 22, 2024
Merged

Feature - Classifier #695

merged 3 commits into from Mar 22, 2024

Conversation

Montagon
Copy link
Contributor

@Montagon Montagon commented Mar 21, 2024

This PR includes a new method in the AI DSL called classify. This method receives an input, output, and context among the model to be used and classifies those values into one of the values of an Enum, that you need to pass.

AI.classify<AnswerAccuracy>(
   input = "Do I love Xef?", 
   output = "I love Xef", 
   context = "The answer responds to the question"
)

@Montagon Montagon marked this pull request as ready for review March 21, 2024 15:18
javipacheco
javipacheco previously approved these changes Mar 21, 2024
Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!! 🚀

@Montagon Montagon merged commit b87bb47 into main Mar 22, 2024
6 checks passed
@Montagon Montagon deleted the feature/classifier branch March 22, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants