Skip to content

Revert "Refactor: update similarity threshold tooltip from 0.2 to 20" - #19034

Merged
wangq8 merged 1 commit into
mainfrom
revert-19033-refactor/update-similarity-threshold
Aug 31, 2026
Merged

wangq8 merged 1 commit into
mainfrom
revert-19033-refactor/update-similarity-threshold

Conversation

@wangq8

@wangq8 wangq8 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Reverts #19033

@wangq8
wangq8 merged commit 7e1a1d2 into main Aug 31, 2026
5 checks passed
@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 62208029-0471-4308-9224-b8334255fdb9

📥 Commits

Reviewing files that changed from the base of the PR and between e41b179 and eedb5cb.

📒 Files selected for processing (17)
  • rag/utils/es_conn.py
  • web/src/locales/ar.ts
  • web/src/locales/bg.ts
  • web/src/locales/de.ts
  • web/src/locales/en.ts
  • web/src/locales/es.ts
  • web/src/locales/fr.ts
  • web/src/locales/id.ts
  • web/src/locales/it.ts
  • web/src/locales/ja.ts
  • web/src/locales/ko.ts
  • web/src/locales/pt-br.ts
  • web/src/locales/ru.ts
  • web/src/locales/tr.ts
  • web/src/locales/vi.ts
  • web/src/locales/zh-traditional.ts
  • web/src/locales/zh.ts

📝 Walkthrough

Walkthrough

The change corrects the documented default similarity threshold from 20 to 0.2 across localized tooltips. It also removes serialized Elasticsearch query output from the search method without changing retry or error handling.

Changes

Similarity threshold documentation and logging

Layer / File(s) Summary
Search logging cleanup
rag/utils/es_conn.py
The search method no longer prints serialized queries. Retry and exception handling remain unchanged.
Localized threshold guidance
web/src/locales/*.ts
The similarityThresholdTip text now states a default threshold of 0.2. Existing retrieval cutoff descriptions remain unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: euvre, jinhai-cn

Poem

A rabbit checks the threshold sign,

And finds that point two fits just fine.
No query prints leap through the air,
Retries still wait with steady care.
Local words now match the line.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yingfeng
yingfeng deleted the revert-19033-refactor/update-similarity-threshold branch August 31, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant