The project uses deepseek-r1:1.5 as the base llm model to extract sentiments out from text and next.js 16, a react based framework for the web ui to interact with the model.
- Install ollama in your system from https://ollama.com/download NEW:
- Go to
fine_tuningfolder's README.md and follow the instructions to fine-tune the model. OLD: - Pull the
deepseek-r1:1.5bmodel using the comandollama pull deepseek-r1:1.5b. - To make sure the model has been pulled, run
ollama run deepseek-r1:1.5b. If everything is right, you should be able to interact with the model locally. - While being inside the
backendfolder, runollama create -f Modelfile sentiment-engine-old. This command creates a model with defined configuration in theModelfileon top ofdeepseek-r1:1.5bwith the name ofsentiment-engine. - If everything is right, you should be able to interact with this new model by running
ollama run sentiment-engine
Great we're done with setting up the backend!
- cd into the
frontenddirectorycd frontend. - run
npm i --legacy-peer-depsto install all the packages. (Make sure you have node and npm installed in your system). - run
npm run dev. This should start a local server at port3000. - If everything is right you should be able to interact with the model on http://localhost:3000
- fork the repository.
- create a new branch and implement your changes.
- merge your changes to
main. - create a pull request.