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

feature: detection of similar questions on new question created event… #1125

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

firasrg
Copy link
Member

@firasrg firasrg commented Jun 1, 2024

This PR is linked to issue (#991).

it seems the initial idea is impossible to solve (significant challenge for a small purpose), but I found a way to do it under the OpenAI integration. i'd like to give a recap about the approaches ive followed:

Initial Idea :

Fetching messages from the server itself and compute 5 top links based on given criteria. This approach was found to be inadequate due to the high volume of responses and lack of message quality indicators such as upvotes or marked correct answers.

To External Resources :

To improve the quality of responses, i've explored fetching relevant links from Google and Stack Exchange API. While this provided some relevant results, it was challenging to filter out irrelevant links and manage long query strings effectively with previous Discord constraints.

Final Solution: Appending References to AI Generated Responses :

To address these challenges, I implemented an easy solution that combines AI-generated answers with references to reliable external links. by appending a small msg, to include up to five relevant links from reliable websites at the end of the response.

Screenshot :
image

@firasrg firasrg requested a review from a team as a code owner June 1, 2024 16:11
@firasrg firasrg force-pushed the feature/detect-similar-questions-on-new-help-thread-created-event branch from 90d26c5 to 1e59810 Compare June 1, 2024 16:31
Copy link

sonarcloud bot commented Jun 1, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Taz03 Taz03 added enhancement New feature or request priority: normal labels Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Feature: Detection of similar questions on new question created event
2 participants