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

Revert Prompt and Update ARASAAC Pictogram Fetching Logic #50

Open
4 tasks
hectoritr opened this issue Oct 31, 2024 · 3 comments · May be fixed by #52
Open
4 tasks

Revert Prompt and Update ARASAAC Pictogram Fetching Logic #50

hectoritr opened this issue Oct 31, 2024 · 3 comments · May be fixed by #52
Assignees
Labels
enhancement New feature or request

Comments

@hectoritr
Copy link

hectoritr commented Oct 31, 2024

Revert Prompt and Update ARASAAC Pictogram Fetching Logic
Description
We need to revert the prompt used in the cboard-ai-engine back to version 1.4.0 to improve pictogram fetching accuracy from ARASAAC. This task will involve several updates to the fetching and fallback mechanisms for ARASAAC pictograms.

Requirements

Revert Prompt: Update the prompt to match version 1.4.0 of cboard-ai-engine.

Use the 1.4.0 prompt to fetch pictograms from ARASAAC. The resulting data should create a new board.
Note: store all associated labels to show to the user.

404 Error Handling:

For any pictograms that return a 404 error in ARASAAC, implement a fallback to a new prompt (similar to the 1.6.0 version) provided by @hectoritr .
Use the ARASAAC "search" endpoint to retry fetching these pictograms.

For any pictograms that continue to return 404 after both attempts, we will rely on the user to either conduct their own search inside "Edit" or use GenAI as an alternative.

  • Revert prompt to the 1.4.0 version.
  • Pictograms are fetched and stored as per the primary prompt.
  • All pictograms that encounter 404 errors are retried with a new fallback prompt.
  • The user is given an option to manually search or use GenAI if the pictogram still returns a 404.
@hectoritr hectoritr changed the title Use old prompt Revert Prompt and Update ARASAAC Pictogram Fetching Logic Oct 31, 2024
@hectoritr hectoritr added the enhancement New feature or request label Oct 31, 2024
@AliLee0923 AliLee0923 linked a pull request Nov 6, 2024 that will close this issue
@hectoritr
Copy link
Author

@AliLee0923 let me know when you need the new prompt.

@AliLee0923
Copy link
Contributor

Current prompt works well so far. I've just added a point for verb management.
If you think the engine doesn't work well, we might need to think about prompt again.

@hectoritr
Copy link
Author

OK amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants