Skip to content

feat(search): add semantic search toggle to SearchForm #5899

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Jul 7, 2025

No description provided.

@ERosendo ERosendo force-pushed the 4562-add-semantic-search-logic-to-search-endpoint branch 2 times, most recently from 2f7ba1e to 217efdb Compare July 16, 2025 19:42
ERosendo added 3 commits July 16, 2025 17:50
Adds two new settings to control vector search behavior:
- `MAX_EMBEDDING_CHAR_LENGTH`: sets the maximum character length for text to embed.
- `KNN_SEARCH_BOOST`: controls the boost factor for KNN-based search scoring.
- `KNN_SEARCH_K`: defines the number of nearest neighbors (`k`) to
  retrieve in KNN vector search queries.
Introduces InputTooLongError, a subclass of SyntaxQueryError, to handle cases where input text exceeds the MAX_EMBEDDING_CHAR_LENGTH limit during embedding preparation.
Introduces `build_semantic_query`, a helper that combines vector-based KNN search with optional exact keyword matching for flexible case law retrieval.
@ERosendo ERosendo force-pushed the 4562-add-semantic-search-logic-to-search-endpoint branch from 217efdb to 1a8e302 Compare July 16, 2025 21:52
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.

1 participant