feat: add optional You.com search integration - #165
mouse-value-add wants to merge 3 commits into
Conversation
- Add YouCom as a new literature source alongside alphaXiv, OpenAlex, and bioRxiv - Integrate You.com web search API for current research and broader context - Optional integration via YDC_API_KEY environment variable (falls back to keyless API) - Consistent with existing CLI interface: orx lit --source youcom <query> - Web results mapped to LitHit format for uniform JSON output - Added handling for You.com URLs in paper command This enables researchers to search current web content and recent developments alongside traditional academic sources, particularly useful for: - Recent research developments not yet in academic indexes - Industry research and blog posts - Broader context around research topics - Current discussions in ML/AI community
…subcommands Resolves the conflict with the literature-command refactor: You.com is now a "discover youcom" subcommand (matching Keyword/Embedding/Openalex/ Biorxiv) instead of a "lit --source" flag. Also removes an accidentally-committed rustup installer script and local test notes. Verified: cargo build, cargo test (690 passed), and a live smoke test of "orx discover youcom" against the keyless endpoint returning real results.
|
Resolved the conflict with the recent literature-command refactor and rebased the integration onto the new architecture (0fde75b):
Verified on the branch: The integration stays fully opt-in: it only runs when explicitly invoked as |
Resolve the Youcom/Pubmed parallel additions: keep both LitSource variants, both discover subcommands, and both paper fetchers side by side. Simplify the duplicated search_youcom payload block (clippy if_same_then_else) and run cargo fmt over the merged files.
|
Rebased onto latest main (070b130). The recent PubMed discovery addition landed in the same spots as the Youcom integration, so the merge keeps both side by side: |
Summary
Add You.com web search as an optional literature source alongside existing alphaXiv, OpenAlex, and bioRxiv sources.
What Changed
--source youcomfor web search capabilityYDC_API_KEYorx lit --source youcom <query>LitHitformat for consistent JSON outputWhy Useful
Research often requires context beyond traditional academic papers:
Usage Examples
Environment Setup
Integration Quality
Technical Details
reqwestHTTP client (already in dependencies)The integration is designed to complement, not replace, existing academic sources. It provides researchers with access to current web content while maintaining the same familiar interface.
Tracking
Related to issue: youdotcom-oss/integration-tracking#175