Project Overview
In this project, I've crafted document summarization and document question answering.
Quick Links to Other readme files
- API readme: api/README.md
- Client readme: client/README.md
Running the Application with Docker
Prerequisites:
- Docker (https://www.docker.com/get-started)
- Docker Compose (https://docs.docker.com/compose/install/)
File Structure:
api/: Python ML projectclient/: React projectdocker-compose.yml: Docker Compose configuration file
Steps:
-
Navigate to the project root directory:
cd /path/to/project -
Build the Docker images:
docker-compose build
-
Start the containers:
docker-compose up
Accessing the Application:
- API:
- Client:
Additional Notes:
-
Stopping the Containers:
docker-compose down
-
Rebuilding Images:
docker-compose build
-
Viewing Container Logs:
docker-compose logs
-
Customizing Ports and Environment Variables:
- Modify the
docker-compose.ymlfile for any port or environment variable adjustments.
- Modify the
-
Known possible Issues
- Ensure that your Docker daemon is configured with a minimum of 12GB RAM. Insufficient memory might lead to application crashes.
- The application's processing speed is influenced by the system's capabilities. For optimal performance, I recommend using a machine with sufficient processing power. In my testing, I used an Apple MacBook Pro M1 Pro with 16GB RAM and 512GB SSD. Summarizing a document typically takes a few minutes.
- Upon the initial startup and API calls, the models from Hugging Face need to be downloaded, potentially extending the waiting time.