Submitted By:
| Sl.N0 | Name | Net ID |
|---|---|---|
| 1 | Uttam Singh | us2193 |
| 2 | Namani Shreeharsh | sn4165 |
Platform Used for Docker Desktop: MAC OS
Docker images are platform independent but not the daemon . Hence to have compatibity for clearml we have noted few steps to run the RAG projects
-
- Docker Desktop or docker daemon should be installed
Follow the steps from 1 to 11 in the below link to create clearml related services (docker services such as clearml-fileserver, clearml-apiserver, clearml-webserver) this will result in a clearml specific docker compose file., which should be like clearml-compose.yml file in the final-instruct-db branch
https://clear.ml/docs/latest/docs/deploying_clearml/clearml_server_linux_mac/
run the below command to launch all the required docker services and images, in the project directory:
docker compose -f /opt/clearml/docker-compose.yml -f docker-compose.yml up -d
run a command inside the ollama image launched from the above docker compose to run the finetuned model, which is pushed to huggingface
Ollama provides good orchestration and library to pull multiple models from huggingface or opensource . This is one of the reason we went with ollama docker image to run the finetuned model. This inherently decouples the model with code. So we can now push any changes to model and code independently of each other
docker exec -it ollama_container ollama run hf.co/nsh22/ROS-gguf
This sets up the RAG model and code to run together and the gradio app can be launched in browser
The below submission contains the screenshots of the question and answers in Gradio application:
https://drive.google.com/file/d/1RBNVO0tswMs-vpi1GFG18rR7a-RVtXdu/view?usp=drive_link
Difference: With Context enhanced prompt the response generated is more latest as it contains instructions for wide range of OS while without context we have response only for Ubuntu for which ROS was first developed
Run command on terminal
mongosh --port 27017
Run the below commands in steps
show dbs
use rag
show collections
db.repositories.find()

