LearnNewsExamplesServices
Frontmatter
id7673
titleRefactor: Standardize score weights in Knowledge Base config
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtOct 27, 2025, 11:59 AM
updatedAtOct 27, 2025, 12:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/7673
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 27, 2025, 12:12 PM

Refactor: Standardize score weights in Knowledge Base config

Closed v11.0.0 enhancementairefactoring
tobiu
tobiu commented on Oct 27, 2025, 11:59 AM

This is a follow-up to PR #7533. The SCORE_WEIGHTS were introduced as a separate, snake-cased constant.

We need to refactor this to align with our project conventions.

Tasks:

  1. Move the score weights from a separate export into the main config object in ai/mcp/server/knowledge-base/config.mjs under a scoreWeights key.
  2. Convert all the weight keys from UPPER_SNAKE_CASE to camelCase (e.g., BASE_INCREMENT becomes baseIncrement).
  3. Update ai/mcp/server/knowledge-base/services/QueryService.mjs to import the default config and access the weights via config.scoreWeights.newKey.
tobiu added the enhancement label on Oct 27, 2025, 11:59 AM
tobiu added the ai label on Oct 27, 2025, 11:59 AM
tobiu added the refactoring label on Oct 27, 2025, 11:59 AM
tobiu cross-referenced by PR #7533 on Oct 27, 2025, 11:59 AM
tobiu assigned to @tobiu on Oct 27, 2025, 12:06 PM
tobiu referenced in commit aa2bb05 - "Refactor: Standardize score weights in Knowledge Base config #7673" on Oct 27, 2025, 12:12 PM
tobiu closed this issue on Oct 27, 2025, 12:12 PM