feat(docs): enhance search with TF-IDF relevance ranking (#40)#656
Closed
diberry wants to merge 1 commit intobradygaster:devfrom
Closed
feat(docs): enhance search with TF-IDF relevance ranking (#40)#656diberry wants to merge 1 commit intobradygaster:devfrom
diberry wants to merge 1 commit intobradygaster:devfrom
Conversation
455dc4b to
cbe69de
Compare
Collaborator
Author
cbe69de to
a8f2dce
Compare
a8f2dce to
26af2fb
Compare
Search improvements: - TF-IDF relevance ranking toggle (localStorage persistent) - Pagefind basePath fix for dev mode - Conditional keyword highlights (on when relevance off) - Playwright e2e tests with self-contained webServer - build:pagefind convenience script for dev - CI: docs search index build step for test suite Team review: Flight approve, FIDO approve Relates to #40 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26af2fb to
120ad0c
Compare
Collaborator
Author
|
Closing -- will re-open via fork-first pipeline when fully polished. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What this improves
Adds an optional relevance ranking toggle to the existing Pagefind search (Ctrl+K / Cmd+K). When enabled, results are re-ranked using TF-IDF cosine similarity with title/heading boost — surfacing the best-match page first instead of showing every page that contains the keyword.
How it works
Changes (6 files)
Testing
Decisions (posted on #40)
Relates to diberry#40