Skip to content

Add Docs on Search Mode Diversity Ranking#380

Draft
CShorten wants to merge 4 commits intomainfrom
search-mode-diversity-ranking
Draft

Add Docs on Search Mode Diversity Ranking#380
CShorten wants to merge 4 commits intomainfrom
search-mode-diversity-ranking

Conversation

@CShorten
Copy link
Copy Markdown
Member

@CShorten CShorten commented Mar 23, 2026

What's being changed:

This adds docs for Diversity Ranking in Weaviate's Query Agent Search Mode.

For quick reference:

Blurb

Search supports adding diversity weighting to search result rankings using Maximal Marginal Relevance (MMR). This is enabled by passing a diversity_weight parameter in the range of 0.0 to 1.0. To use diversity ranking with target vectors, set the single target vector that you want to use in the Query Agent's constructor. Diversity ranking is not yet supported with collections using multi-vector embeddings. Diversity ranking will work with multiple collections, unless they are using different embedding models.

The Python and TypeScript examples have been added as well

Type of change:

  • Feature or enhancements (non-breaking change to add functionality)

How has this been tested?

  • Local build - the site works as expected when running yarn start

Copy link
Copy Markdown

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@CShorten CShorten requested a review from g-despot April 8, 2026 12:46
@CShorten CShorten removed the request for review from g-despot April 8, 2026 12:51
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