Skip to content

This is a Python application that allows you to load a PDF and ask questions about it using natural language. The application uses a LLM to generate a response about your PDF. The LLM will not answer questions unrelated to the document.

License

Notifications You must be signed in to change notification settings

KalyanM45/DocGenius-Revolutionizing-PDFs-with-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocGenius-Revolutionizing-PDFs-with-AI

Aboout the Project

This is a Python application that allows you to load a PDF and ask questions about it using natural language. The application uses a LLM to generate a response about your PDF. The LLM will not answer questions unrelated to the document. The application reads the PDF and splits the text into smaller chunks that can be then fed into a LLM. It uses OpenAI embeddings to create vector representations of the chunks. The application then finds the chunks that are semantically similar to the question that the user asked and feeds those chunks to the LLM to generate a response. Here is the Proof of Concept.

Images of Proof of Concept

logo

logo

Required Libraries

  • tiktoken
  • faiss-cpu
  • langchain
  • PyPDF2
  • python-dotenv
  • streamlit

Installation

This is make you understand how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

  1. Clone the repo
git clone https://github.com/KalyanMurapaka45/DocGenius-Revolutionizing-PDFs-with-AI.git
  1. Install the required libraries
pip install -r requirements.txt

You will also need to add your OpenAI API key to the .env file.

  1. To use the application, run the app.py file with the streamlit CLI (after having installed streamlit):
streamlit run app.py

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!. Don't forget to star the project if you find it useful!

  1. Fork the Project

  2. Create your Feature Branch

  3. Commit your Changes

  4. Push to the Branch

  5. Open a Pull Request

Licnese

Distributed under the GNU General Public License v3.0. See LICENSE.txt for more information.

Acknowledgements

We would like to express our gratitude to the open-source community for their invaluable inspiration and contributions. We also acknowledge the Python libraries used in this project and their respective contributors.

About

This is a Python application that allows you to load a PDF and ask questions about it using natural language. The application uses a LLM to generate a response about your PDF. The LLM will not answer questions unrelated to the document.

Topics

Resources

License

Stars

Watchers

Forks

Languages