This repository contains an adapted version of the STELLA Micro-Template, designed to serve as the foundational code for the baseline recommendation system of the Mock Recommendation System. The code specifically focuses on providing recommendations based on the RELISH documents, which are part of the system's dataset.
The mock_rec_base repository provides a baseline recommendation model that orders PubMed articles according to their appearance within the RELISH Database. The goal is to integrate STELLA within the Mock Recommendation System and evaluate the effectiveness of the integration.
The primary objective of this repository is to:
- Serve as a baseline recommendation system for the Mock Recommendation System.
- Integrate STELLA into the recommendation pipeline.
- Compare user statistics between the baseline and experimental systems, such as user interactions (e.g., clicks), to assess whether the new approach yields improvements in recommendation relevance or user engagement.
Before starting, ensure that Docker is installed on your system. You can follow the installation instructions here.
To download the necessary data files, execute the following script:
./data.sh
This will create a data
folder and download two files "relish_text.jsonl" and "relish_recoms.jsonl".
- Build the Docker Image:
To build the Docker image for the application, run the following command:
sudo docker build -t mock_rec_base .
- Run the Docker Container: After building the image, you can run the application in the terminal:
sudo docker run -it mock_rec_base
Once the application is running, you can test it by visiting the following URLs:
-
Check Indexing Status: Navigate to http://0.0.0.0:5000/index. The page should display the message: Indexing is done!
-
Test Recommendations: To test the recommendation functionality, visit: http://0.0.0.0:5000/recommendations/publications?item_id=22569528.
The response should look like this:
{
"item_id": "22569528",
"itemlist": [
17928366,
18562239,
19052640,
19060905,
19242111,
19244124,
19414607,
19805545,
19816936,
20079430,
20811985,
22028468,
22177953,
23549785,
23712012,
24089523,
25350931,
26235619,
27376062,
28474232
],
"num_found": 20,
"page": 0,
"rpp": 20
}