Research Assistant App
This Django-based web application serves as a Research Assistant, allowing users to search for academic papers using the ArXiv API, summarize them, interact with the content through a chat interface, view the full PDF of selected papers, generate word clouds for paper summaries, and create knowledge graphs representing the paper’s content and relationships.
Current Features
- ArXiv Paper Search: Users can search for research papers using keywords.
- Paper Summaries: The app displays summaries of selected papers.
- Chat Interface: Users can ask questions about the papers using a chat interface powered by the Claude AI model.
- PDF Viewer: Users can view the full PDF of selected papers directly in the browser.
- Word Cloud Generation: Users can generate and view word clouds for paper summaries.
- Knowledge Graph Creation: Users can view knowledge graphs representing the paper’s content and relationships.
Setup and Installation
- Clone the repository
- Create a virtual environment and activate it
- Install the required packages:
pip install -r requirements.txt
- Create a
.env file in the root directory and add the following:
SECRET_KEY=your_secret_key_here
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
- Run migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
Usage
- Search for Papers:
- Go to the home page and enter your search query.
- Click on a paper title to view its summary.
- View Paper Summary:
- On the paper summary page, you’ll see options to view the PDF, generate a word cloud, and create a knowledge graph.
- PDF Viewer:
- Click “View PDF” on the paper summary page.
- The PDF will open in a new tab, allowing you to read the full paper.
- Use the “Back to Paper Summary” button to return to the summary page.
- Word Cloud Generation:
- Click “View Word Cloud” on the paper summary page.
- A new page will open, displaying the generated word cloud for the paper’s summary.
- Knowledge Graph:
- Click “View Knowledge Graph” on the paper summary page.
- A new page will open, showing the generated knowledge graph representing key concepts and relationships in the paper.
- Chat Interface:
- On the paper summary page, use the chat interface to ask questions about the paper.
- The AI-powered assistant will provide answers based on the paper’s content.
Troubleshooting
If you encounter any issues:
- Ensure all required packages are installed and up to date.
- Check that your
.env file contains the necessary API keys and secret key.
- Make sure you’ve applied all migrations.
- Clear your browser cache if you’re experiencing front-end issues.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is open source and available under the MIT License.