Skip to content

Update DotProduct impl to use TensorPrimitives in ToolDescriptionEvaluator#1628

Open
anannya03 wants to merge 1 commit intomicrosoft:mainfrom
anannya03:tool-desc-eval-update
Open

Update DotProduct impl to use TensorPrimitives in ToolDescriptionEvaluator#1628
anannya03 wants to merge 1 commit intomicrosoft:mainfrom
anannya03:tool-desc-eval-update

Conversation

@anannya03
Copy link
Contributor

What does this PR do?

Update DotProduct impl to use TensorPrimitives in ToolDescriptionEvaluator

The code is working as expected, and result.md is being produced correctly-

image

GitHub issue number?

#1264

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)

Copilot AI review requested due to automatic review settings February 2, 2026 20:33
@anannya03 anannya03 requested review from a team as code owners February 2, 2026 20:33
@github-project-automation github-project-automation bot moved this to Untriaged in Azure MCP Server Feb 2, 2026
Copy link
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

This PR updates the DotProduct implementation in the ToolDescriptionEvaluator to use TensorPrimitives.Dot() instead of a manual loop-based calculation. This change simplifies the code and leverages optimized SIMD operations available in TensorPrimitives.

Changes:

  • Replaced manual dot product calculation with TensorPrimitives.Dot() for better performance and code clarity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant