This project contains two main components:
nvidia/Llama3-ChatQA-1.5-8B model to answer questions based on documents.The Flask backend serves the frontend application, which includes HTML, CSS, and JavaScript files. It provides the user interface where users can input their question and document, and view the generated answer.
The machine learning service utilizes the nvidia/Llama3-ChatQA-1.5-8B model. This service accepts a question and a document as input, processes them using the model, and returns an answer based on the content of the document.
my_project/
│
├── backend/
│ ├── app/
│ │ ├── __init__.py
│ │ ├── main.py
│ │ ├── templates/
│ │ │ └── index.html
│ │ ├── static/
│ │ │ ├── css/
│ │ │ │ └── style.css
│ │ │ └── js/
│ │ │ └── script.js
│ ├── __init__.py
│ ├── Dockerfile
│ ├── requirements.txt
│
├── ml_service/
│ ├── app/
│ │ ├── __init__.py
│ │ ├── main.py
│ │ ├── model.py
│ ├── __init__.py
│ ├── Dockerfile
│ ├── requirements.txt
│
├── tests/
│ ├── __init__.py
│ ├── test_backend.py
│ ├── test_ml_service.py
├── __init__.py
├── docker-compose.yml
├── setup.py
├── README.md
├── MANIFEST.in
└── pytest.ini
To build and run the project with Docker Compose, use the following command:
docker-compose up --build
This command will build the Docker images for both the Flask backend and the ML service, and then start the containers.
The Flask backend will be accessible at http://localhost:8000. It serves the frontend application where users can input their question and document.
The ML service will be accessible at http://localhost:8001. This service handles the processing of the question and document using the nvidia/Llama3-ChatQA-1.5-8B model and returns the answer.
http://localhost:8000.git clone https://github.com/Appjey/ML-Inz-example.git
cd my_project
python -m venv venv
source venv/bin/activate # On Windows use `venv\ScriptsActivate`
pip install -r backend/requirements.txt
pip install -r ml_service/requirements.txt
To run the backend locally:
cd backend
python app/main.py
To run the ML service locally:
cd ml_service
python app/main.py
To run the tests, use the following command:
pytest
If you would like to contribute, please open a pull request with your changes. Make sure to update the tests as appropriate.
This project is licensed under the MIT License. See the LICENSE file for details.
This project contains two main components:
nvidia/Llama3-ChatQA-1.5-8B model to answer questions based on documents.The Flask backend serves the frontend application, which includes HTML, CSS, and JavaScript files. It provides the user interface where users can input their question and document, and view the generated answer.
The machine learning service utilizes the nvidia/Llama3-ChatQA-1.5-8B model. This service accepts a question and a document as input, processes them using the model, and returns an answer based on the content of the document.
my_project/
│
├── backend/
│ ├── app/
│ │ ├── __init__.py
│ │ ├── main.py
│ │ ├── templates/
│ │ │ └── index.html
│ │ ├── static/
│ │ │ ├── css/
│ │ │ │ └── style.css
│ │ │ └── js/
│ │ │ └── script.js
│ ├── __init__.py
│ ├── Dockerfile
│ ├── requirements.txt
│
├── ml_service/
│ ├── app/
│ │ ├── __init__.py
│ │ ├── main.py
│ │ ├── model.py
│ ├── __init__.py
│ ├── Dockerfile
│ ├── requirements.txt
│
├── tests/
│ ├── __init__.py
│ ├── test_backend.py
│ ├── test_ml_service.py
├── __init__.py
├── docker-compose.yml
├── setup.py
├── README.md
├── MANIFEST.in
└── pytest.ini
To build and run the project with Docker Compose, use the following command:
docker-compose up --build
This command will build the Docker images for both the Flask backend and the ML service, and then start the containers.
The Flask backend will be accessible at http://localhost:8000. It serves the frontend application where users can input their question and document.
The ML service will be accessible at http://localhost:8001. This service handles the processing of the question and document using the nvidia/Llama3-ChatQA-1.5-8B model and returns the answer.
http://localhost:8000.git clone https://github.com/Appjey/ML-Inz-example.git
cd my_project
python -m venv venv
source venv/bin/activate # On Windows use `venv\ScriptsActivate`
pip install -r backend/requirements.txt
pip install -r ml_service/requirements.txt
To run the backend locally:
cd backend
python app/main.py
To run the ML service locally:
cd ml_service
python app/main.py
To run the tests, use the following command:
pytest
If you would like to contribute, please open a pull request with your changes. Make sure to update the tests as appropriate.
This project is licensed under the MIT License. See the LICENSE file for details.