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(integration): RAI Research Paper Fetch Agent #387

Closed

Conversation

Vaibhav-sa30
Copy link

This agent is designed to fetch and summarize research papers on specified topics related to Responsible AI from the arXiv database. The integration includes functionalities for retrieving paper details, extracting content, and generating summaries using OpenAI's API.

The key components and functionalities added in this PR are outlined below:

Key Features

  • Fetch Research Papers from arXiv:
  1. Retrieves research papers based on user-provided topics.
  2. Extracts and returns details such as the title, summary, authors, link to the PDF, and the paper content.
  • Extract PDF Content:
  1. Downloads the PDF of the research paper.
  2. Extracts and processes text content from the PDF.
  • Summarize Paper Content:

Uses OpenAI's API to generate a summary of the paper's content.

  • Error Handling:
  1. Implements error handling for network requests, XML parsing, and PDF processing.
  2. Logs relevant error messages for troubleshooting.

Code Overview

  • Agent Setup:

Initializes the RAI Research Paper Fetch Agent with the required configurations.

  • Protocol Definition:

Manages requests and responses related to fetching and summarizing research papers.

  • Helper Functions:
  1. fetch_paper: Fetches research papers from arXiv.
  2. get_paper_details: Extracts and returns paper details.
  3. fetch_pdf_content: Downloads and extracts content from the PDF.
  4. paper_summary: Generates a summary using OpenAI's API.

@abhifetch
Copy link
Collaborator

Thanks @Vaibhav-sa30 for submitting this integration. We will review this and include in our integrations.

@abhifetch
Copy link
Collaborator

This is a hackathon example and hence needs to be moved from integrations to hackathon examples. Closing the PR in integrations and creating a new PR in hackathon examples with a reference to this one.

@abhifetch abhifetch closed this Aug 1, 2024
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