nitishragu12 / Capstone-Project

0 stars 0 forks source link

Introduction

The Western Australian Centre for Road Safety Research (WACRSR) is initiating a project to automate the manual process of scanning and analyzing road safety literature. Currently, this process is labor-intensive, taking up valuable time that could be better spent on critical research tasks. To address this, the project aims to develop a system that leverages advanced large language models (LLMs) to streamline literature scanning and evaluation.

Group Members

Student ID Full Name GitHub Username
23856227 Ziqi Chen ziqichen55555
24139368 Krish Goti krishgoti2002
23740534 Chung Hei Tse maxtse25
23926903 Shijun Shao Halffancyy
23799876 Hui-Ling Huang somni1oquist
23689789 Nitish Raguraman nitishragu12

Project Structure

./
├── api/
│   ├── app/
│   │   ├── controllers/
│   │   ├── models/
│   │   ├── services/
│   │   ├── utils/
│   │   └── __init__.py
│   ├── logs/
│   ├── config.py
│   ├── Dockerfile.<env>
│   ├── README.md
│   └── requirements.txt
├── secrets/
│   ├── els_api_key.txt
│   ├── els_token.txt
│   └── llm_api_key.txt
├── ui/
│   ├── app/
│   │   ├── about/
│   │   ├── assets/
│   │   ├── components/
│   │   ├── context/
│   │   ├── home/
│   │   ├── results/
│   │   ├── search/
│   │   ├── page.tsx
│   │   ├── layout.tsx
│   │   └── ...
│   ├── public/
│   ├── .eslintrc.json
│   ├── .gitignore
│   ├── Dockerfile.<env>
│   ├── next-env.d.ts
│   ├── next.config.mjs
│   ├── package-lock.json
│   ├── package.json
│   ├── README.md
│   └── tsconfig.json
├── .gitignore
├── docker-compose.<env>.yml
└── README.md

Launch Papermate Application

0: Install Docker Desktop

Go to Docker website to download and install the application. Once Installed, make sure the docker engine is running.

1. Secrets

Contact developers to acquire the necessary three secret files: API key for Gemini, API key for Elsevier and Institutional token. After getting the files, create a folder named secrets/ under root folder:

├── secrets/
│   ├── els_api_key.txt
│   ├── els_token.txt
│   └── llm_api_key.txt

1.5. (Optional) Create launch.json

If you would like to use vscode debugger function, add the following content to cofiguration file launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Remote Attach",
            "type": "debugpy",
            "request": "attach",
            "connect": {
                "host": "127.0.0.1",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}/api",
                    "remoteRoot": "/app"
                }
            ],
            "justMyCode": true
        }
    ]
}

2. Run docker-compose

Open the terminal that is under root foler, choose an environment:

3. Access Papermate

Go to the url of Papermate http://localhost:3000/, the app should be up and running now.

User Manual

0. User Interface:

Before you dive into the platform, familiarize yourself with its layout and functionalities. The webpage is divided into four main sections: Home, Search, Result, and About.

[1] Home

The Home page provides a brief introduction to the platform and its key functionalities.

[2] Search (Literature Paper Search) picture will be provided after ui done

The Search page is where you can query the database for relevant academic papers.

[3] Result picture will be provided after ui done

The Result page displays the search results only after you click Proceed on the Search page.

[4] About

The About page provides details about our development team and links to the GitHub repository for project updates and contributions.

1. Operation Steps:

In the search page:

In the Result page

2. FAQ:

[1] Image Conflict:

If you encounter issue during building images, you can clear the Docker cache by using the following command:

docker system prune –a 

[2] Search and Proceed Functions:

Please be patient, as the search or proceed functions may take some time to complete.