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

§Intent Classification: Inconsistent Responses #1

Open
TahaTobaili opened this issue Feb 27, 2024 · 0 comments
Open

§Intent Classification: Inconsistent Responses #1

TahaTobaili opened this issue Feb 27, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@TahaTobaili
Copy link
Owner

TahaTobaili commented Feb 27, 2024

User Experience:

As the user is watching the video, they can chat with AiDA about it. Their questions, might require an in depth response aided by a nice chart or it might be a simple response. Hence, a chart is not always necessary in this case.

What needs to be done:

To mitigate this redundancy, a nice way is to classify the user's intent, as a start if they are looking for a summary then yes generate a chart and audio file (text-to-speech) as well.

For that check function classify_intent(user_input) it attempts to classify whether the user is requesting a summary or something else via a ChatGPT call. The responses are inconsistent and not always accurate.

To address this, the following steps need to be implemented:

  1. Prompt: We need to make sure ChatGPT response is precisely "True" or "False" to treat the output as a boolean with ast.literal_eval(response.content). It might be that GPT is responding with something like "true" or "true.." or "yes, it is a summary" or the like. Keep playing with the prompt to reach consistent output.

  2. Function Calling: Use a json schema and function calling to return the response to a specific json key, read this.

    Bonus Points: Figure out Function Calling in LangChain!

  3. Testing Robustness: Need to be tested sufficiently to confirm that the intent is correctly classified as "True" if request relates to a summary or "False" for anything else.

@TahaTobaili TahaTobaili added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Feb 27, 2024
@TahaTobaili TahaTobaili changed the title Intent Classification: Inconsistent Responses §Intent Classification: Inconsistent Responses Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant