feat(tavily): add TavilyFetcher component using the Extract API#3561
Open
SyedShahmeerAli12 wants to merge 1 commit into
Open
feat(tavily): add TavilyFetcher component using the Extract API#3561SyedShahmeerAli12 wants to merge 1 commit into
SyedShahmeerAli12 wants to merge 1 commit into
Conversation
Implements a new TavilyFetcher component that wraps the Tavily Extract API endpoint to fetch and extract web page content from given URLs, returning results as Haystack Documents. - Supports sync and async (run/run_async) - extract_depth: "basic" or "advanced" - include_images: optionally include image URLs in Document metadata - extract_params: pass-through for any extra API params (format, query, chunks_per_source, etc.) - meta output contains response_time, usage, request_id, failed_results - 19 unit tests + 2 integration tests, all verified against real API
744b1b4 to
f501f6c
Compare
Contributor
Coverage report (tavily)Click to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Proposed Changes
Adds
TavilyFetcher, a new component undercomponents/fetchers/tavily/that calls the Tavily Extract API to fetch and extract web page content from given URLs, returning results as HaystackDocumentobjects.run) and async (run_async) supportedextract_depth:"basic"(default) or"advanced"include_images: optionally include image URLs in Document metadataextract_params: pass-through for extra API params (format,query,chunks_per_source, etc.)metaoutput:response_time,usage,request_id,failed_resultsHow did you test it?
19 unit tests (mocked) + 2 integration tests run against the real Tavily Extract API all pass.
Checklist
feat: