feat: improve search relevance, add pagination, and clean up legacy templates - #319
Merged
Conversation
…ights - Update keyword weights: name(5) > organisation(4) > description(3) > readme(2) - Add embedding_readme to keyword fields with weight 1 - Use embedding_description as the vector_query field for semantic search - Enable rerank_hybrid_matches to combine keyword + semantic scores - Remove query lowercasing to preserve original case in results - Update fallback path with same keyword weights
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.
Description:
This PR delivers several improvements to the search experience and UI, along with cleanup of legacy code.
Search improvements
name(weight 5) >organisation(4) >description(3) >readme(2) — so title matches surface first.rerank_hybrid_matchesand a vector query onembedding_description. Includes a graceful fallback to keyword-only search if embeddings are not yet available.Pagination
offset) across page navigation.UI polish
Cleanup
_base.html,_navbar.html,results.html) no longer in use.readmefield from Typesense import to save memory.search_for_url.Dependencies & config
0.9.3.sentry-sdk[fastapi]from>=2.58.0to>=2.61.1.seed_typesensetarget to the Makefile.rebase-energy/timedbto the indexed repositories.