Skip to content

Avoid hardcoding external ingest embedding type#308873

Merged
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/exuberant-flea
Apr 9, 2026
Merged

Avoid hardcoding external ingest embedding type#308873
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/exuberant-flea

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Apr 9, 2026

Also updated some telemetry fields so we can do correlations more easily

Also updated some telemetry fields so we can do correlations more easily
Copilot AI review requested due to automatic review settings April 9, 2026 21:06
@mjbvz mjbvz enabled auto-merge April 9, 2026 21:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Copilot workspace chunk search’s external ingest path to avoid hardcoding the embedding model when interpreting search results, and enriches telemetry so searches can be correlated across call sites.

Changes:

  • ExternalIngestIndex.search now derives the EmbeddingType from the service’s embedding_model response field instead of using a fixed constant.
  • ExternalIngestIndex.search now accepts a TelemetryCorrelationId and logs additional correlation properties in success/cancel/error telemetry.
  • Call site updated to pass the richer telemetry object through (CodeSearchChunkSearchExternalIngestIndex).
Show a summary per file
File Description
extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/externalIngestIndex.ts Use response-provided embedding model for result metadata; switch search telemetry input to TelemetryCorrelationId and emit additional correlation fields.
extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/codeSearchChunkSearch.ts Pass TelemetryCorrelationId through to ExternalIngestIndex.search.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

…Search/externalIngestIndex.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mjbvz mjbvz merged commit 20775e0 into microsoft:main Apr 9, 2026
25 of 26 checks passed
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 9, 2026
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