Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(you-retriever): Support You.com News API #1117

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

christeefy
Copy link
Contributor

@christeefy christeefy commented Jun 6, 2024

You.com has both a Search and News API. Currently the YouRetriever only supports Search.

This PR enables it to also support News, while maintaining backwards compatibility.

This update has been manually tested:

from dspy.retrieve.you_rm import YouRM

search_rm = YouRM(endpoint="search")
res = search_rm("Who is the most famous singer in the 90s?")

news_rm = YouRM(endpoint="news")
res = news_rm("Latest pop songs")

@christeefy christeefy marked this pull request as ready for review June 6, 2024 15:25
@arnavsinghvi11
Copy link
Collaborator

Thanks @christeefy !

It would also be great if you could add documentation for the YouRM to provide context as done for the RMs. Feel free to add all relevant content for the YouRM API documentation linked).

@christeefy
Copy link
Contributor Author

@arnavsinghvi11 done, PTAL! 😊

@arnavsinghvi11 arnavsinghvi11 merged commit 0cf0b21 into stanfordnlp:main Jun 17, 2024
4 checks passed
@arnavsinghvi11
Copy link
Collaborator

Thanks @christeefy !

@christeefy christeefy deleted the you/retriever-update branch June 17, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants