Inspiration

Hit Netflix TV show 'Better Call Saul'

What it does

Committed a crime? Do you need a criminal lawyer? No, you need a 'criminal' lawyer. This AI model answers any legal queries that you may have and gives excellent assistance to help prepare your defence. It can be used for educational purposes by law students in order to provide a better grip on their studies or potentially save a user from spending millions of dollars in legal fees.

How we built it

We used OpenAI, Langchain and Flask alongside PyPDF2 to parse the pdf

Challenges we ran into

This was our first time working with a chatbot and giving a personality to Paul through prompts is what we struggled in. Also, prompt engineering to get a specific type of response proved to be challenging. Moreover, there weren't enough laws we found in a pdf format online.

Accomplishments that we're proud of

Built a chatbot which has been trained on a specific set of data and can answer questions from it

What we learned

We learnt more about Flask, working with Langchain and Open AI API, parse a PDF to train the dataset

What's next for Better Call Paul

Train it on a wider dataset, work on the Frontend to make it more impressive and give more personality to Paul

Built With

  • flask
  • langchain
  • openai
  • pypdf2
Share this project:

Updates