---
id: change/bcapps/13964
type: change
title: "#13964 Adjust relevance score for new embedding model"
summary: Relevance score thresholds for item search have been adjusted to work with a new embedding model that returns different score ranges, making more relevant items appear in search results with appropriate confidence levels.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit search
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-13T00:59:24.081Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f55d8a5257597718947d23397e579ccde8470a5b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13964
    title: "microsoft/BCApps#13964: Adjust relevance score for new embedding model"
    date: "2026-11-12"
    commit: f55d8a5257597718947d23397e579ccde8470a5b
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7333
    - object/codeunit/7282
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/transparency-note-semantic-metadata-search
      title: Transparency Note Semantic Metadata Search in Business Central
      label: possibly related
      why: Documents semantic search with embedding models that determine relevance scoring for results.
      by: model
number: 13964
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13964
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-12T16:39:16Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 7
  deletions: 7
  al: 2
apps:
  - CreateProductInformationWithCopilot
  - SalesLinesSuggestions
objects_touched:
  - key: codeunit/7333
    page: codeunit/7333
    type: codeunit
    id: 7333
    name: Search
    app: CreateProductInformationWithCopilot
    status: modified
  - key: codeunit/7282
    page: codeunit/7282
    type: codeunit
    id: 7282
    name: Search
    app: SalesLinesSuggestions
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 658841
systems:
  - inventory
  - sales
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13964 Adjust relevance score for new embedding model

> Relevance score thresholds for item search have been adjusted to work with a new embedding model that returns different score ranges, making more relevant items appear in search results with appropriate confidence levels.

[Pull request](https://github.com/microsoft/BCApps/pull/13964) · merged into `main` (BC30) on 2026-11-12 by VolodySyn · 2 files (+7 -7), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Minimum context-aware ranking score lowered from 0.70 to 0.25 in Sales Lines Suggestions
- Confidence thresholds (High/Medium/Low) significantly reduced in both Sales Lines Suggestions and Create Product Information apps
- Comparison operators changed from greater-than to greater-than-or-equal for consistency
- Changes optimize results for new embedding model while maintaining confidence categorization
- No API, schema or permission changes; behavior adapts to new model's scoring distribution
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7333 "Search"](../../objects/codeunit/7333.md), CreateProductInformationWithCopilot: modified
- [Codeunit 7282 "Search"](../../objects/codeunit/7282.md), SalesLinesSuggestions: modified

## Context

- Work items: AB#658841
- Labels: AL: Apps (W1), Team: SCM
- Systems: inventory, sales

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Transparency Note Semantic Metadata Search in Business Central](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/transparency-note-semantic-metadata-search) — possibly related: Documents semantic search with embedding models that determine relevance scoring for results. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
