Hk669 / research-agent

research agent, which helps fetch and summarize the articles from internet

Home Page:https://research-agent-669.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo.mp4

Research Agent

The Research Agent is an AI-powered tool designed to assist users in conducting research by searching for information, finding relevant articles, and summarizing them automatically. This tool utilizes advanced natural language processing (NLP) techniques and web scraping to provide users with concise summaries of relevant articles on their chosen topics.

Features

1. Search Functionality

Users can enter their research query into the search bar provided in the Streamlit app. The Research Agent then utilizes the Google SERPER API to perform a search query and retrieve relevant articles based on the user's input.

2. Article Preview

Once the search results are obtained, the Research Agent displays a list of relevant articles along with their titles and URLs. Additionally, it uses the Linkpreview library to fetch a preview of each article, including the title, description, and thumbnail image (if available), providing users with a quick overview of each article's content.

3. Summarization

After selecting an article from the list, users can click on the URL to view the full article. The Research Agent then uses Selenium to scrape the text content of the article from the webpage. Once the text content is obtained, it applies recursive character text splitting to break down the article into smaller chunks suitable for processing.

4. Automatic Summarization

Using Langchain and OpenAI's GPT-3.5 model, the Research Agent generates a concise summary of the rticle's content. This summary is presented to the user within the Streamlit app, allowing them to quickly grasp the main points of the article without having to read through the entire text.

Installation

  1. Clone the repository:
git clone https://github.com/Hk669/research-agent.git
cd research-agent
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:

Create a .env file in the root directory and add your SERPER and OpenAI API keys:

SERPER=your_serper_api_key
API_KEY=your_openai_api_key

Usage

  1. Run the Streamlit app:
streamlit run agent.py
  1. Enter your query in the text input field and click the "Search" button.

  2. The app will display a list of relevant articles along with their titles and URLs.

  3. Click on the URL to view the full article.

  4. The app will generate a concise summary of the articles.

Technologies Used

  • Python
  • Streamlit
  • Selenium
  • Langchain
  • Linkpreview

License

This project is licensed under the MIT License.

About

research agent, which helps fetch and summarize the articles from internet

https://research-agent-669.streamlit.app/

License:MIT License


Languages

Language:Python 100.0%