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

Make min_scraped_sites a ratio of available sites #115

Closed
wants to merge 1 commit into from
Closed

Conversation

kongzii
Copy link
Collaborator

@kongzii kongzii commented Oct 14, 2024

No description provided.

Copy link
Collaborator

@evangriffiths evangriffiths left a comment

Choose a reason for hiding this comment

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

I think min_scraped_sites is useful for ensuring two things:

  1. the number of sites returned from tavily search is long enough that we have enough sources for a 'good' research report
  2. that the scraping of these sources was successful

This change keeps (2), but loses (1). I would prefer either

  • try-excepting research wherever it's called (maybe we could make a InsufficientSourceMaterialForResearchError exception class to make it easier to catch), or
  • returning Research | None.

@kongzii kongzii closed this Oct 14, 2024
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.

2 participants