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(community): Port ArxivRetriever to LangChainJS #7250

Merged
merged 20 commits into from
Dec 24, 2024

Conversation

boni-teppanyaki
Copy link
Contributor

  • Description:
    This PR ports ArxivRetriever from LangChain Python to LangChainJS. An ArxivRetriever component would grant users access to up-to-date research directly from arXiv. This retriever would allow users to pull full text and summaries through natural language queries or arXiv identifiers. Specifically, we have added

    • Arxiv utils & retriever implementation,
    • documentation for ArxivRetriever,
    • integration tests for ArxivRetriever,
    • example usages for ArxivRetriever.
  • Issue:
    This PR addresses Port ArxivRetriever to LangChainJS #7095

Copy link

vercel bot commented Nov 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Dec 24, 2024 2:52am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Dec 24, 2024 2:52am

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels Nov 24, 2024
@@ -0,0 +1,78 @@
# ArxivRetriever in LangChain.js (Docs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@@ -0,0 +1,211 @@
import axios from 'axios'; // For HTTP requests
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's just use fetch

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, sorry for the late response, but our team have just modified the file to use fetch instead of axios. We have tested our code and the test cases still passed. Thank you!

1. Removed the import axios line in src/utils/arxiv.ts
2. Removed the dependencies to use axios in "ArxivRetriever in LangChain.js (Docs)" file
@jacoblee93 jacoblee93 changed the title Port ArxivRetriever to LangChainJS feat(community): Port ArxivRetriever to LangChainJS Dec 24, 2024
@jacoblee93
Copy link
Collaborator

Thanks!

@jacoblee93 jacoblee93 merged commit be3fc04 into langchain-ai:main Dec 24, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants