Vector search performance enhancements - #3754
Open
shanbady wants to merge 5 commits into
Open
Conversation
OpenAPI Changes2 changes: 0 error, 0 warning, 2 info Unexpected changes? Ensure your branch is up-to-date with |
Contributor
There was a problem hiding this comment.
Pull request overview
Improves vector-search performance by serving Qdrant payloads directly and prefetching vector results during SSR.
Changes:
- Adds configurable payload-backed resource responses.
- Trims indexing-only payload fields.
- Aligns SSR prefetching with the selected search mode.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
vector_search/views.py |
Uses selected Qdrant payloads directly. |
vector_search/views_test.py |
Tests payload selection and fallback behavior. |
vector_search/utils.py |
Adds payload selection and transformation helpers. |
vector_search/utils_test.py |
Tests payload parity, trimming, and deduplication. |
vector_search/constants.py |
Defines excluded payload fields. |
main/settings.py |
Adds the payload-response feature toggle. |
vectorSearchParams.ts |
Extracts shared vector request mapping. |
HybridSearchDisplay.tsx |
Uses shared vector parameter helpers. |
search/page.tsx |
Prefetches vector results during SSR. |
search/page.test.tsx |
Tests endpoint-specific SSR prefetching. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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 are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/12687
Description (What does it do?)
This PR contains the following performance enhancements for vector search:
How can this be tested?