Skip to content

Conversation

@leo-gan
Copy link
Collaborator

@leo-gan leo-gan commented May 11, 2023

Added the arxiv retriever

Who can review?

   - @dev2049

@leo-gan leo-gan changed the title added arxiv retriever added arxiv retriever May 11, 2023
@leo-gan leo-gan marked this pull request as ready for review May 11, 2023 23:06
Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i actually really like this. looks great!

@dev2049 dev2049 merged commit e17d031 into langchain-ai:master May 12, 2023
@leo-gan leo-gan deleted the arxiv_retriever branch May 12, 2023 15:16
from langchain.utilities.arxiv import ArxivAPIWrapper


class ArxivRetriever(BaseRetriever, ArxivAPIWrapper):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to change ArxivAPIWrapper into a DocumentLoader
and create a compositional pattern that allows upgrading a document loader into a retriever so we don't end up with double inheritance?

@hwchase17 @leo-gan

@eyurtsev
Copy link
Collaborator

@leo-gan I REALLY like this PR and demo!

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.

4 participants