ad-freiburg / aqqu-frontend

An easy to use frontend for Aqqu
Apache License 2.0
2 stars 0 forks source link

Long load times for autocompletion #6

Closed graue70 closed 4 years ago

graue70 commented 4 years ago

This issue might fit better to https://github.com/ad-freiburg/qac. I'm not sure.

If I input 'what is the capital of ' and then quickly type 'japa', the autocompletion takes a considerable amount of time to follow the input. At the beginning, it suggests 'Kampala', after a while it suggests 'Jakarta' before it finally suggests 'Japan'. The requests sent to qac apparently take close to 2 seconds: aqqu_qac_long_load_time

This makes using the completions a little funky. When you press Enter you can't always be sure which suggestion is actually selected.

flackbash commented 4 years ago

Yes, this is caused by the QAC API and is not the website's fault ;) I will have a look into it. However, I assume this is a general performance thing that doesn't have a quick fix and comes from computing language model probabilities, word2vec similarity and co-occurrence counts between tons of entities and words... So there will probably not be any improvement on this any time soon.