File size: 1,960 Bytes
a9e2051
 
 
 
 
 
 
 
 
 
 
 
 
6b493a7
 
 
 
3bffcf6
6b493a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: Research Paper Ai Agent
emoji: πŸ‘
colorFrom: yellow
colorTo: green
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
short_description: Superlinked powered AI research paper agent
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Research AI Agent

A Gradio application that provides an AI-powered research assistant for academic papers.
Based on this article: https://superlinked.com/vectorhub/articles/research-agent

## Features

- **Paper Retrieval**: Find relevant research papers based on your query
- **Paper Summarization**: Generate concise summaries of selected papers
- **Question Answering**: Ask questions about research topics and get AI-generated answers

## Setup Instructions

This application uses OpenAI's API. You need to provide an API key as a secret in your Hugging Face Space:

1. Go to your Space settings
2. Add a secret with the key `OPENAI_API_KEY` and your OpenAI API key as the value

## How to Use

### General Query
Enter any research-related query, and the agent will classify it as retrieval, summarization, or question answering automatically.

### Paper Retrieval
Search for papers on specific topics by entering a search query. Results include publication dates and summaries.

### Paper Summarization
1. Enter comma-separated paper IDs
2. Click "View Available Papers" to see a list of paper IDs in the dataset
3. Click "Summarize" to generate a summary of the selected papers

### Question Answering
Ask specific questions about research topics, and the agent will provide answers based on the paper database.

## Technology

- **Superlinked**: For vector-based similarity search and time-aware paper discovery
- **Sentence Transformers**: For text embedding
- **OpenAI**: For LLM-based summarization and question answering
- **Gradio**: For the user interface

## Dataset

The application uses a dataset of AI research papers from arXiv.