RAGNER - Improving LLMs performance using RAG and NER.
https://www.youtube.com/watch?v=UJNlPA83IJY&t=985s
To run the code install the dependencies given in requirements.txt Preferred way is to create an virtual env and proceed. We have used UBUNTU, for other OS addition dependencies or versions might be required.
To run the code as is,
- install all dependencies in a virtual environment
- activate the environment
- Also install Ollama for Local LLMs (refer official website) [curl -fsSL https://ollama.com/install.sh | sh] UBUNTU
- download llama2 in Ollama
- now 'cd NER'
- run all the NER_Training.ipynb, it will create a trained ner model which can be used further.
- 'cd ..'
- now run the Final.ipynb file to produce the shown results.
To access through the Frontend, run
'streamlit run app.py'