bloop icon indicating copy to clipboard operation
bloop copied to clipboard

Encourage diversity of languages in semantic search results

Open ggordonhall opened this issue 2 years ago • 0 comments

Adds a language diversity factor to the MMR score in the deduplicate_snippets function. This helps return relevant results for ambiguous queries that could refer to multiple parts of a project.

This PR also deduplicates snippets returned by the /semantic/chunks endpoint, and changes its return type to Vec<Snippet>.

ggordonhall avatar Apr 25 '23 15:04 ggordonhall