Skip to content

Implement a TavilyFetcher that uses Tavily Extract API endpoint #3559

Description

@anakin87

This new component should use the Tavily Extract API endpoint, that extracts web page content from one or more specified URLs.

If you want to contribute with this feature, make sure you have a Tavily API key to test the new component yourself locally. Please do not submit a PR with code you haven't tried yourself.

Brief design idea

Should live in the Tavily integrations, under a new fetchers folder.

The run signature might look like the following:

@component.output_types(documents=list[Document], meta=dict[str, Any])
def run(self, urls: list[str]) -> dict[str, Any]:

I expect meta to contain info related to the request like response_time, usage and request_id. See API docs above.

We should also understand if only webpages are supported or also other content like PDFs.

Checklist

Metadata

Metadata

Assignees

Fields

No fields configured for Feature.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions