Together-Java / TJ-Bot

TJ-Bot is a Discord Bot used on the Together Java server. It is maintained by the community, anyone can contribute.
https://togetherjava.org
GNU General Public License v3.0
100 stars 89 forks source link

New Feature: Detection of similar questions on new question created event #991

Open firasrg opened 10 months ago

firasrg commented 10 months ago

Problem :

Members often post questions that may have been asked before, leading to redundant discussions and sometimes, a waste of time for helpers.

Solution :

Automatically suggests similar questions when a user creates a new Help-Thread. By analyzing the title and content of the new question and comparing it to existing threads (including opened ones). In other words, I see to provide questionner(s) with links to relevant discussions that may address their expectations:

Currently, when a new Help-Thread is up, there is an automatic msg sent by TJBot:

🤖 @Java - Helper please have a look, thanks.

At that time, the bot can perform the search and tells that there some similar _Help-Thread_s that may help and provide links to them like this:

🤖 Oh! It looks like there are existing help threads covering a similar topic, check them out :

marko-radosavljevic commented 10 months ago

I think it's wiser to search better knowledge repositories like stackoverflow. We have discussed similar ideas before in #627. :relaxed:

firasrg commented 10 months ago

Hello @marko-radosavljevic !

After thinking about that, i came to a conclusion that doing such will NOT be helpful (enough). The member will have to quit server and go searching on Stackoverflow (maybe somewhere else too). This might be confusing and poor as user experience. Also, it could lead to make members migrate to that platform.

marko-radosavljevic commented 10 months ago

The way we would probably implement that is with just answering in chat, with an embed with top SO answer for that question. So it would be decent UI/UX experience in discord, like we have for other similar commands.

Madybe there would also be a link, so user can go there and read more, and question helper used would be displayed as well, with the goal of helping user in the future with finding answers on their own. You get the ansewr right away, comfortably, but you also get the search prompt, so you can do the same in future, learning how to utilize search engines and SO platoform, which are essential skills for every dev.

firasrg commented 10 months ago

The way we would probably implement that is with just answering in chat, with an embed with top SO answer for that question. So it would be decent UI/UX experience in discord, like we have for other similar commands.

I think i don't get what you mean here, can you elaborate please ?