Skip to content

Add automatic 'See also' recommendations to every wiki article#241

Open
Shreenabh664 wants to merge 4 commits intoRoboticsKnowledgebase:masterfrom
Shreenabh664:feature/see-also
Open

Add automatic 'See also' recommendations to every wiki article#241
Shreenabh664 wants to merge 4 commits intoRoboticsKnowledgebase:masterfrom
Shreenabh664:feature/see-also

Conversation

@Shreenabh664
Copy link
Copy Markdown

The algorithm auto-identifies the top N (≤ 4, based on confidence) most relevant articles to the current one and references them at the bottom in a "See also" section. It's a fully dynamically computed feature at build time - which means it doesn't require manual curation, new articles get matched automatically, and if a more relevant article to a specific existing topic is added in the future, it'll get auto-referenced.

Screenshot 2026-04-27 at 1 47 19 AM Screenshot 2026-04-27 at 1 47 42 AM Screenshot 2026-04-27 at 1 48 02 AM

This is a step to take this wiki closer to conventional wikis (like Wikipedia), which are very well cross-referenced - users can go on independent learning paths by simply following the suggested articles after reading any page.

@p-amyjiang
Copy link
Copy Markdown
Collaborator

Implementation looks good to me, but how does this feature interact with existing pages that have a statically written "See also" section? Will the article have two See alsos?

Pre-render check in the client-side JS: scan the article body for any
H2-H4 heading whose text matches "See also" (case-insensitive, optional
trailing : or .) and bail out before fetching/rendering the auto recs.
This addresses the duplicate-section concern raised by p-amyjiang on
the PR -- about 57 wiki articles already ship a manually written
See also list, and they should keep authorial curation untouched.

The auto-injected `.sa-heading` is excluded from the detector so the
guard stays idempotent if the script ever re-runs on the same DOM.
@Shreenabh664
Copy link
Copy Markdown
Author

Implementation looks good to me, but how does this feature interact with existing pages that have a statically written "See also" section? Will the article have two See alsos?

Fixed, we retain author's curation if present & dont inject a new section now.

@p-amyjiang
Copy link
Copy Markdown
Collaborator

LGTM

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.

3 participants