Welcome to the official repository of Team Sentinals from MGMs College of Engineering, Nanded! We are excited to present our chatbot designed to answer basic questions related to cancer. Our chatbot provides accurate and concise responses to your inquiries.
"Introduction to GenAI and Simple LLM Inference on CPU and finetuning of LLM Model to create a Custom Chatbot"
Our solution leverages Intel's Neural Chat LLM for local inference on CPU, making it highly accessible and efficient without requiring GPU resources. The chatbot ingests data from PDF files, converts the text into embeddings using BGE Embeddings, and implements Retrieval-Augmented Generation (RAG) using an open-source stack.
- Intel's Neural Chat LLM: Chosen for its capability to run independently on CPUs.
- BGE Embeddings: Utilized for text embedding.
- Chroma DB: Serves as the vector store.
- Langchain & CTransformers: Frameworks used for orchestration.
-
Clone the Repository:
git clone https://github.com/Aditya19110/Team_Sentinals_Unnati-2024 cd Team_Sentinals_Unnati-2024
-
Create a Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install Dependencies:
pip install -r requirements.txt
-
Additional Dependency:
pip install protobuf==3.20.0
Due to space constraints, the LLM is not included in this repository. Please download the Intel Neural Chat LLM from Hugging Face and place it in the appropriate directory.
Convert the data to embeddings by running:
python ingest.py
Note: This process might take some time as it converts the data into embeddings.
Start the Flask application:
python app.py
Visit the provided URL in your browser to interact with the chatbot and ask any cancer-related questions. All the documents(pdfs) and ppts are uploaded here...
Thank you for exploring our project! We hope our chatbot provides valuable assistance in answering your cancer-related queries.
Name | ||
---|---|---|
Aditya Kulkarni | ||
Kashish Aswani | ||
Rasika Rakhewar | ||
Nagesh Ballurkar | ||
Pallavi Lagludkar |
Name | ||
---|---|---|
Mr. Shivprasad Titare |