bloop
bloop copied to clipboard
Encourage diversity of languages in semantic search results
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>.