fetchai / uAgents

A fast and lightweight framework for creating decentralized agents with ease.
Apache License 2.0
775 stars 203 forks source link

feat(integration): RAI Research Paper Fetch Agent #387

Open Vaibhav-sa30 opened 1 month ago

Vaibhav-sa30 commented 1 month ago

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

  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.
  1. Downloads the PDF of the research paper.
  2. Extracts and processes text content from the PDF.

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

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

Code Overview

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

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

  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 commented 9 hours ago

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