Week 10: Tooth Be Told...
May 3, 2024
Hi everyone, and welcome to Week 10 of my senior project! I would like to share some major updates on my virtual dentist chatbot as I was finally able to connect my GPT with my dataset. So, let’s get into it!
Using SQL
As I mentioned last week, I wanted to use either PostgreSQL or LlammaIdex to connect to a database. This would ensure that the GPT is referring to my custom-made data set. One crucial step of doing so is loading my custom GPT model. While I was doing this, I imported a transformers library but ran into similar problems that occurred in the past as I had to load my GPT model locally (which GPT-4 isn’t trained to do), which meant that I couldn’t use a GPT4 tokenizer.
A (Different?) Approach
As a last resort, while configuring my chatbot, I tried uploading my dataset and asked my model to use it as a reference point when reading patient information. And this worked! My chatbot was now successfully able to ask for the patient’s ID number AND use their ID as a source to their medical history, intra-oral exams, and extra-oral exams. The chatbot asks the user for their ID number and refers to the patient sample data.
What does this mean? So now, when a patient provides their stated problem, my model will keep in mind any factors that are included in their medical history when providing oral-care tips. Here is an overview of the steps the GPT takes to provide tips.
Finalizing my Model
As some final steps, I will work on refining my model and create a new patient questionnaire for patients to fill out if they’re new to the clinic or if their medical history isn’t included in the system. I’ll work on this during the next week so stay tuned to find out how more users can use my project for oral-health.
Thanks for reading and please let me know if you have any questions! See you next week!
Leave a Reply
You must be logged in to post a comment.