This is a API for a case based reasoner that provides policy recommendation in the context of Covid-19 such as lockdown, mask, and vaccine policies. This API allows decision makers to create cases, view them, and submit a query to the reasoner which will return a policy recommendation as well as the top 3 most similar cases. The API is built using fastapi and is deployed on Render.com. The case based reasoner API is connected to a Postgres database that stores the cases. The database and the API are hosted and deployed on Render.com.
https://cbr-api.onrender.com/docs
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to have python 3 and postgres server installed on your machine.
To install the project, clone the repository and run the following command in the project directory:
python -m venv venv
./venv/Scripts/activate
pip install -r requirements.txt
To run the project, run the following command in the project directory:
uvicorn main:app --reload
Test the project by going to http://localhost:8000/ in your browser.
- FastAPI - The library used
- Sudan Upadhaya - sudan94
This project is licensed under the MIT License.