Discovery v1: add seed-based discovery, normalization, and review tooling#21
Open
fowler128 wants to merge 1 commit into
Open
Discovery v1: add seed-based discovery, normalization, and review tooling#21fowler128 wants to merge 1 commit into
fowler128 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
--dry-runmode for local testing and bootstrapping.Description
discovery/apify_runner.pyto loaddiscovery/seed_queries.yaml, consultconfigs/platform_rules.yaml, call Apify actors (when configured) or fall back to YouTube RSS and DuckDuckGo site search, and write unified raw JSON todata/raw_candidates.jsonwith a--dry-runoption.discovery/normalize_to_market_intelligence.pyto map raw JSON intooutput/market_intelligence.csv, preserving existing headers, appendingneeds_reviewandconfidence_score, and deriving fields likenicheandopening_hook.discovery/review_candidates.pyto scan the normalized CSV and summarize/flag records missing critical metadata (creator_name,platform,source_url), transcripts, opening hooks, or CTAs.requirements.txt,.gitignore, and sample outputs underdata/andoutput/to demonstrate expected artifacts and run examples.Testing
python3 discovery/apify_runner.py --dry-run, which completed successfully and wrotedata/raw_candidates.json(exit 0).python3 discovery/normalize_to_market_intelligence.py --raw data/raw_candidates.json --output output/market_intelligence.csv, which producedoutput/market_intelligence.csvand exited successfully (exit 0).python3 discovery/review_candidates.py --csv output/market_intelligence.csv --sample-limit 5which printed a summary and sample flagged rows and exited successfully (exit 0).Codex Task