Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Score boosting #1506

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Docs: Score boosting #1506

wants to merge 5 commits into from

Conversation

coszio
Copy link
Contributor

@coszio coszio commented Mar 10, 2025

For v1.14 release

  • Adds documentation for formula queries
  • Removes Re-ranking with payload values section since formula queries can do the same thing, but more versatile.

Rendered

TODO:

  • Add example which uses defaults for payloads or scores
  • Add snippets for other langs

@coszio coszio added the do not merge For release on a specified date label Mar 10, 2025
Copy link

netlify bot commented Mar 10, 2025

Deploy Preview for condescending-goldwasser-91acf0 ready!

Name Link
🔨 Latest commit c5659e8
🔍 Latest deploy log https://app.netlify.com/sites/condescending-goldwasser-91acf0/deploys/67e452996a82570008e457c7
😎 Deploy Preview https://deploy-preview-1506--condescending-goldwasser-91acf0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

- If a score or variable is not available, and there is no default value, it will return an error.
- If a value is not a number (or the expected type), it will return an error.
- To leverage payload indices, single-value arrays are considered the same as the inner value. For example: `[0.2]` is the same as `0.2`, but `[0.2, 0.7]` will be interpreted as `[0.2, 0.7]`
- Multiplication and division are lazily evaluated, meaning that if a 0 is encountered, the rest of operations don't execute (e.g. `0.0 * condition` won't check the condition).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add a note about performance?

  • use indexed payload values
  • less payload usage in formulas means more performant formulas
  • more performant formulas means faster search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge For release on a specified date
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants