Posts

A Reflection On My PDF Interrogator - Hufsa Haq

Lessons from Building a PDF Interrogator and My Work Experience Undertaking the task of creating a PDF interrogator using ChatGPT has been an informative experience, unveiling the immense capabilities of technology, as well as giving me the opportunity to under a professor in a work environment. From the inception of the project to its completion, I have gained insights into the intricacies of programming and the remarkable potential of AI-powered solutions. One of the key lessons learned throughout this journey is the significance of thorough planning and analysis. From the initial stages, I learnt the importance of understanding the project's goals, the specific requirements of the PDF interrogator, and the potential challenges that may arise. This knowledge enabled me to make informed decisions and develop a robust foundation for the project. Another vital lesson was the power of continuous learning and adaptability. As I encountered obstacles and complexities, I embraced a grow...

The Start of My Project : A Simple PDF Interrogator using ChatGPT - Hufsa Haq

Welcome! In this blog post, I will outline the steps involved in developing a PDF Interrogator program. This project was undertaken during my work experience at the University of Liverpool under the guidance of Dr. Waleed Al-Nuaimy . Here are the steps I have identified: Extracting text from the PDF: Utilize a library like PyPDF2 to extract the text from the PDF document. Pre-processing the extracted text: Clean and normalize the extracted text if required to enhance its quality and consistency. Training a ChatGPT model: Train a ChatGPT model using a dataset consisting of question-answer pairs related to the content of the PDF. Integrating the ChatGPT model: Incorporate the trained ChatGPT model into your application or interface. Uploading and extracting text from PDF files: Enable users to upload PDF files and extract the text from them. Processing user queries: Capture user queries and pass them to the ChatGPT model for generating responses. Presenting responses: Display the model...

A Simple Python Interface to ChatGPT for a PDF Interrogator - Hufsa Haq

Welcome to my blog! In this post, I will show you my coded version of a simple Python interface to interact with ChatGPT, allowing you to build a PDF interrogator. With this interface, you'll be able to ask questions about the contents of a PDF file and receive AI-generated responses. Introduction The goal of my project is to leverage the power of ChatGPT, a language model developed by OpenAI, to create an interface for extracting information from PDF files. By combining the capabilities of ChatGPT with Python and the PyPDF2 library, we can build an application that enables users to ask questions and obtain answers based on the text extracted from the PDF. Prerequisites Before we dive into the implementation details, make sure you have the following prerequisites: Python installed on your machine (version 3.6 or higher) Flask web framework (install using pip install flask ) PyPDF2 library (install using pip install PyPDF2 ) An OpenAI API key for accessing ChatGPT (sign up at OpenAI...