Skip to content

Comments

search: use default confidence of 0.1 on search instead of disabling min_confidence#3553

Merged
mouse-reeve merged 1 commit intobookwyrm-social:mainfrom
ilkka-ollakka:fix/search_confidence_to_default
Apr 19, 2025
Merged

search: use default confidence of 0.1 on search instead of disabling min_confidence#3553
mouse-reeve merged 1 commit intobookwyrm-social:mainfrom
ilkka-ollakka:fix/search_confidence_to_default

Conversation

@ilkka-ollakka
Copy link
Contributor

@ilkka-ollakka ilkka-ollakka commented Apr 19, 2025

Description

0.1 is min_confidence if parameter is not given, but search sets it to 0, so min_confidence was not actually used in connectors/searches.

This also fixes the flow if you give min_confidence as URL parameter. Previously it gave failure as it was trying to compare str to float

  • Related Issue #
  • Closes #

What type of Pull Request is this?

  • Bug Fix
  • Enhancement
  • Plumbing / Internals / Dependencies
  • Refactor

Does this PR change settings or dependencies, or break something?

  • This PR changes or adds default settings, configuration, or .env values
  • This PR changes or adds dependencies
  • This PR introduces other breaking changes

Details of breaking or configuration changes (if any of above checked)

Documentation

  • New or amended documentation will be required if this PR is merged
  • I have created a matching pull request in the Documentation repository
  • I intend to create a matching pull request in the Documentation repository after this PR is merged

Tests

  • My changes do not need new tests
  • All tests I have added are passing
  • I have written tests but need help to make them pass
  • I have not written tests and need help to write them

0.1 is min_confidence if parameter is not given, but search sets it to 0, so min_confidence was not actually used
@mouse-reeve mouse-reeve merged commit 5bf0f2a into bookwyrm-social:main Apr 19, 2025
10 checks passed
@mouse-reeve
Copy link
Member

Looks good, thank you!

@ilkka-ollakka ilkka-ollakka deleted the fix/search_confidence_to_default branch April 19, 2025 15:42
@hughrun hughrun added the plumbing PR for internal processes or background jobs label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plumbing PR for internal processes or background jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants