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

Feat intelligent related posts #380

Merged
merged 5 commits into from
Nov 10, 2023
Merged

Conversation

jsolly
Copy link
Owner

@jsolly jsolly commented Nov 9, 2023

Description

Changes Made

  • Added new feature
  • Fixed bug
  • Refactored code
  • Other (please describe):

Whenever a post is saved, the top three simular posts are calculated and stored in the Simularity model. When the post-detail page is viewed, these three similar posts are fetched.

There may be 0-3 related posts depending on how high the similarity score it.

Test Plan

Not going to write a test for this one because it would require creating new posts and this would slow down tests.

Checklist

  • I have read the contributing guidelines
  • I have added tests to cover my changes and they all pass in addition to the existing tests.
  • I have added documentation for my changes (if appropriate)

Additional Information

@jsolly jsolly requested a review from freedompraise November 9, 2023 18:27
@jsolly
Copy link
Owner Author

jsolly commented Nov 9, 2023

@freedompraise Let me know what you think! Create a few posts and see how the similarity calculation is done.

@jsolly jsolly linked an issue Nov 9, 2023 that may be closed by this pull request
@jsolly
Copy link
Owner Author

jsolly commented Nov 10, 2023

@freedompraise merging this for now. I think the Similarity calculation could be greatly improved, but this can be done in subsequent PRs.

@jsolly jsolly merged commit 27489eb into master Nov 10, 2023
2 checks passed
@jsolly jsolly deleted the feat-intelligent-related-posts branch November 10, 2023 22:43
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

Successfully merging this pull request may close these issues.

Intelligently choose related posts for post-detail page
1 participant