Skip to content

This project allows you to upload a PDF document and ask questions about its content. It uses langchain, openai api model and Facebook Ai Similarity Search(FAISS) library to process the text in the PDF and provide answers to questions pertaining the document.

License

Notifications You must be signed in to change notification settings

john-thuo1/chatWithPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatWithPDF

This project allows you to upload a PDF document and ask questions about its content. It uses langchain, openapi ai model and Facebook Ai Similarity Search(FAISS) library to process the text in the PDF and provide answers to questions pertaining the document.

Project Screen

image

Cost

image

Installation

  1. Clone the repository:

    git clone https://github.com/john-thuo1/chatWithPDF
    cd into your directory/ open with vscode
  2. Create a Virtual Environment:

    python -m venv env
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Create OpenAI API Key and add it to your .env file: openai

    Specify the variable as follows :
    OPENAI_API_KEY = "Secret Key"
  5. Run the application:

    streamlit run App.py

Next Steps

  1. Add support for multiple file formats
  2. Implement Document Indexing techniques by use of libraries such as Elasticsearch or Apache Solr
  3. Enhance question answering capabilities: Explore advanced question answering techniques, such as using transformer models like BERT or GPT, to improve the accuracy and comprehension of the system.
  4. Use a model that supports multiple languages, most notably some BERT models do support this.

About

This project allows you to upload a PDF document and ask questions about its content. It uses langchain, openai api model and Facebook Ai Similarity Search(FAISS) library to process the text in the PDF and provide answers to questions pertaining the document.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages