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

Reranker models #1300

Open
dcieslak19973 opened this issue Mar 25, 2025 · 1 comment
Open

Reranker models #1300

dcieslak19973 opened this issue Mar 25, 2025 · 1 comment

Comments

@dcieslak19973
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Allow the curator to use specific reranker models like those from AWS or Cohere

Describe the solution you'd like
Only use

            response = await create_chat_completion(
                model=self.researcher.cfg.smart_llm_model,
                messages=[
                    {"role": "system", "content": f"{self.researcher.role}"},
                    {"role": "user", "content": rank_sources_prompt(
                        self.researcher.query, source_data, max_results)},
                ],
                temperature=0.2,
                max_tokens=8000,
                llm_provider=self.researcher.cfg.smart_llm_provider,
                llm_kwargs=self.researcher.cfg.llm_kwargs,
                cost_callback=self.researcher.add_costs,
            )

As a fallback if no reranker model is specified

Describe alternatives you've considered
N/A

Additional context
Purpose-built reranking models likely outperform prompts

@ElishaKay
Copy link
Collaborator

cc @assafelovic

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

No branches or pull requests

2 participants