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

Improve pictogram search #44

Open
RodriSanchez1 opened this issue Sep 30, 2024 · 0 comments
Open

Improve pictogram search #44

RodriSanchez1 opened this issue Sep 30, 2024 · 0 comments
Assignees

Comments

@RodriSanchez1
Copy link
Collaborator

RodriSanchez1 commented Sep 30, 2024

Currently, we are using the ARASAAC API's "beast search" endpoint by default to search for images, which returns the best pictograms based on the searchText.

Main Problem:

Occasionally, the API returns a 404 Not Found, resulting in an empty image being associated with a tile.

Edge Cases:

  • The issue often occurs when the search text contains a non-infinitive verb. For example:
    Searching for "brushing teeth" results in a 404 error. However, searching for "brush teeth" returns a successful response.
  • Plural words

Possible Solutions:

  • Modify the search prompt to implicitly return verbs in their infinitive form.
  • Add a fallback mechanism when a 404 error is encountered. Options include:
    • Searching alternative symbol sets in GlobalSymbols.
    • Using ARASAAC’s "search" endpoint instead of the "beast search" endpoint. If "beast search" is used, define a maximum number of images to avoid retrieving an excessive amount.
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

No branches or pull requests

2 participants