feat: add Tavily-powered Reddit search alongside BrightData pipeline#2
Open
tavily-integrations wants to merge 2 commits into
Open
Conversation
added 2 commits
April 24, 2026 13:18
…ch as Lightweight Parallel Path
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.
Summary
Adds a fast Tavily-powered Reddit search (
site:reddit.comviainclude_domains) as a parallel, lightweight alternative to the existing BrightData snapshot-based Reddit pipeline. The BrightData pipeline (trigger → poll → download) remains fully intact; the Tavily path provides quicker results without snapshot latency.Changes
web_operations.pytavily_reddit_search(query)function usingTavilyClientwithinclude_domains=["reddit.com"]andsearch_depth="advanced"parsed_postsformat asreddit_search_api()main.pytavily_reddit_resultsandtavily_reddit_analysisfields toStateTypedDicttavily_reddit_search_nodeandanalyze_tavily_reddit_resultsgraph nodestavily_reddit_searchfromSTARTin parallel with existing search nodesanalyze_tavily_reddit_results→synthesize_analysessynthesize_analysesto includetavily_reddit_analysisprompts.pytavily_reddit_analysis_system()andtavily_reddit_analysis_user()prompt templatesget_tavily_reddit_analysis_messages()convenience functionsynthesis_user()andget_synthesis_messages()to accept and includetavily_reddit_analysispyproject.tomltavily-python>=0.5.0dependency.gitignore(new)__pycache__/and*.pycEnvironment Variable Changes
TAVILY_API_KEYenvironment variable (shared with other Tavily migration units)Notes for Reviewers
snapshot_operations.pywas not modifiedAutomated Review
contentfield is present in parsed results, early return guard exists inanalyze_tavily_reddit_results, trailing newlines are added, and.gitignoreis confirmed from the prerequisite unit. The graph wiring, prompt templates, dependency declaration, and graceful API key failure handling are all correct. One minor pre-existing type annotation inconsistency is noted but follows the existing codebase pattern.