[PR #773] [MERGED] [FEAT] show chunk score on citations #3489

Closed
opened 2026-02-22 18:33:53 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/773
Author: @shatfield4
Created: 2/21/2024
Status: Merged
Merged: 2/22/2024
Merged by: @timothycarambat

Base: masterHead: 742-feat-show-chunk-score


📝 Commits (9)

  • f4533a8 show similarity score in citation chunks
  • 4614871 Merge branch 'master' into 742-feat-show-chunk-score
  • cf6baa5 refactor combine like sources to handle separate similarity scores and improve UI for displaying chunks
  • b282990 fix parseChunkSource function to work with links
  • 320199c destructure properties in chunks mapping
  • 90ef0a3 check chunk length in parseChunkSource
  • 9a84ea5 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 742-feat-show-chunk-score
  • 4671e4a change UI on how score is shown
  • 8418051 remove duplicate import

📊 Changes

2 files changed (+58 additions, -16 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx (+50 -16)
📝 frontend/src/utils/numbers.js (+8 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #742

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Refactor combineLikeSources function to create object that hold score instead of appending all text together to display to user
  • Show similarity scores for all chunks in citations
  • Improve UI to show citation chunks in a more user friendly way
  • Implement showing similarity score using tooltip

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/773 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 2/21/2024 **Status:** ✅ Merged **Merged:** 2/22/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `742-feat-show-chunk-score` --- ### 📝 Commits (9) - [`f4533a8`](https://github.com/Mintplex-Labs/anything-llm/commit/f4533a8f32cfbc2eb5d82b38cd4b5b86e86f16df) show similarity score in citation chunks - [`4614871`](https://github.com/Mintplex-Labs/anything-llm/commit/4614871f2b3c091d8b291ffa7246b7fa2c751923) Merge branch 'master' into 742-feat-show-chunk-score - [`cf6baa5`](https://github.com/Mintplex-Labs/anything-llm/commit/cf6baa50537590e554318b81ebc81c7cf3bb0037) refactor combine like sources to handle separate similarity scores and improve UI for displaying chunks - [`b282990`](https://github.com/Mintplex-Labs/anything-llm/commit/b282990e8c41115efea211e9489ecc82d4222226) fix parseChunkSource function to work with links - [`320199c`](https://github.com/Mintplex-Labs/anything-llm/commit/320199c3230ad0e55842f69a857ba4c54578b024) destructure properties in chunks mapping - [`90ef0a3`](https://github.com/Mintplex-Labs/anything-llm/commit/90ef0a305e6c1b11034e7302c72fa1ac10d5c710) check chunk length in parseChunkSource - [`9a84ea5`](https://github.com/Mintplex-Labs/anything-llm/commit/9a84ea56774eb32bde935a61912144e89217fd19) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 742-feat-show-chunk-score - [`4671e4a`](https://github.com/Mintplex-Labs/anything-llm/commit/4671e4a50af7f8a17427cc21b45e3fa1dd38f78b) change UI on how score is shown - [`8418051`](https://github.com/Mintplex-Labs/anything-llm/commit/8418051cd1733032cc18f0601408d418837594c1) remove duplicate import ### 📊 Changes **2 files changed** (+58 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx` (+50 -16) 📝 `frontend/src/utils/numbers.js` (+8 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #742 ### What is in this change? Describe the changes in this PR that are impactful to the repo. - Refactor combineLikeSources function to create object that hold score instead of appending all text together to display to user - Show similarity scores for all chunks in citations - Improve UI to show citation chunks in a more user friendly way - Implement showing similarity score using tooltip ### Additional Information Add any other context about the Pull Request here that was not captured above. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:53 -05:00
yindo closed this issue 2026-02-22 18:33:53 -05:00
yindo changed title from [PR #773] [FEAT] show chunk score on citations to [PR #773] [MERGED] [FEAT] show chunk score on citations 2026-06-05 15:13:41 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3489