[PR #6907] [MERGED] Update calculatePercentage CitationsModal.svelte (high percentage for high relevance) #8773

Closed
opened 2025-11-11 18:05:38 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6907
Author: @clang88
Created: 11/13/2024
Status: Merged
Merged: 11/13/2024
Merged by: @tjbck

Base: devHead: patch-1


📝 Commits (2)

  • ad0b599 Update calculatePercentage CitationsModal.svelte
  • 67cb345 Update CitationsModal.svelte

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 src/lib/components/chat/Messages/CitationsModal.svelte (+3 -3)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: The percentage score on citations is calculated in such a way, that high relevance chunks have low percentage score. This reverses the behaviour to return the expected results (high relevance percentage for high relevance chunks)
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • fix: Bug fix or error correction

Changelog Entry

Description

Reverse the calculated percentage score to get high percentage score for high relevance chunks.

Fixed

  • calculatePercentage function in CitationsModal.svelte (#6904, #6906) .

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/6907 **Author:** [@clang88](https://github.com/clang88) **Created:** 11/13/2024 **Status:** ✅ Merged **Merged:** 11/13/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`ad0b599`](https://github.com/open-webui/open-webui/commit/ad0b599940f36d3f4282e27284afffaddc6edc4b) Update calculatePercentage CitationsModal.svelte - [`67cb345`](https://github.com/open-webui/open-webui/commit/67cb3455ad7283acb9b4ad3afeae571346c27a1d) Update CitationsModal.svelte ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Messages/CitationsModal.svelte` (+3 -3) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** The percentage score on citations is calculated in such a way, that high relevance chunks have low percentage score. This reverses the behaviour to return the expected results (high relevance percentage for high relevance chunks) - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **fix**: Bug fix or error correction # Changelog Entry ### Description Reverse the calculated percentage score to get high percentage score for high relevance chunks. ### Fixed - calculatePercentage function in CitationsModal.svelte (#6904, #6906) . --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:05:38 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#8773