Skip to content

fix: normalize search query to lowercase and update image assets - #709

Merged
Prajwal-Microsoft merged 2 commits into
devfrom
bugfix/search-filter
Sep 3, 2026
Merged

fix: normalize search query to lowercase and update image assets#709
Prajwal-Microsoft merged 2 commits into
devfrom
bugfix/search-filter

Conversation

@Ayaz-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

Normalize search query to lowercase and update image according to gpt model used

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new unconditional lowercasing of the search query can alter semantic search behavior (embedding input) and should be revised to avoid changing query meaning.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adjusts the backend document search flow to normalize the incoming search query (currently by lowercasing it) before calling Kernel Memory search, aiming to make search behavior more consistent.

Changes:

  • Normalize the query string in GetAllDocumentsByPageAsync prior to _memoryWebClient.SearchAsync(...).
  • Minor whitespace/formatting adjustment around the query handling block.
File summaries
File Description
App/backend-api/Microsoft.GS.DPS/API/UserInterface/Documents.cs Normalizes the search query before invoking Kernel Memory search, affecting how document IDs are retrieved for paging.
Review details
  • Files reviewed: 1/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread App/backend-api/Microsoft.GS.DPS/API/UserInterface/Documents.cs
Copilot AI review requested due to automatic review settings September 3, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PR title/description indicates image asset updates, but the provided diff only changes query normalization, suggesting the PR scope/description may be inconsistent or incomplete.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread App/backend-api/Microsoft.GS.DPS/API/UserInterface/Documents.cs
@Prajwal-Microsoft
Prajwal-Microsoft merged commit b389423 into dev Sep 3, 2026
6 checks passed
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