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

Investigate reranker models to use with Hybrid Search #176

Open
dasgoutam opened this issue Jan 22, 2025 · 1 comment
Open

Investigate reranker models to use with Hybrid Search #176

dasgoutam opened this issue Jan 22, 2025 · 1 comment
Labels
analysis Analyse/comparative study of features component:chat Chat Back End enhancement New feature or request

Comments

@dasgoutam
Copy link
Collaborator

A re-ranker model takes the retrieved documents from a retriever and the user query as an input, and provides a score to each document based on their relevance to the query. This can then be used to "re-rank" the documents.

The score provided by the re-ranker is theoretically better than the score we already receive from the retriever, which gives the score fetched from the similarity score. But the re-ranker score would be more relevant to the user query. Using faster re-ranker models can also be quick in providing results.

If the re-ranker performs well, we can use a score threshold (as used previously) and can potentially omit the need for the relevance check.

This can be investigated directly with the current retrieval setup, or using opensearch

@dasgoutam dasgoutam added analysis Analyse/comparative study of features component:chat Chat Back End enhancement New feature or request labels Jan 22, 2025
@svenseeberg
Copy link
Member

svenseeberg commented Jan 22, 2025

It seems we can do this directly in OpenSearch: https://opensearch.org/docs/latest/search-plugins/search-relevance/reranking-search-results/

Lets try to do this directly with #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Analyse/comparative study of features component:chat Chat Back End enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants