Skip to content

Bhavd33p/PDF-Converse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

PDF-Converse

The PDF Converse tool can be used to upload PDFs and effectively answer all queries. With this tool, users can collaborate and engage in discussions within the context of the document itself.

Features :

  1. Upload PDF files: Users can easily upload their PDF files using the user-friendly interface.
  2. Extract text: The application extracts the text content from the uploaded PDF files using PyPDF2 library.
  3. Text processing and embeddings: The code utilizes langchain's CharacterTextSplitter to segment the text into manageable chunks.
  4. Building the knowledge base: The text chunks and embeddings are stored in Chroma, leveraging FAISS for efficient similarity search, enhancing retrieval accuracy.

Installation :

  1. Clone the repository: git clone https://github.com/Bhavd33p/PDF-Converse.git
  2. pip install -r requirements.txt.
  3. After Installing all dependencies you need to install ollama from https://ollama.com/ for Command Line
  4. Then use these command to fetch the model :
    ~ ollama pull nomic-embed-text
    ~ ollama run mistral

Usage :

Run the Application by

  1. streamlit run pdfconverse.py
    if Axios error 403 occurs upon uploading pdf use this : streamlit run pdfconverse.py --server.enableXsrfProtection false
  2. Upload your PDF file using upload pdf section in sidebar.
  3. Ask a query about the PDF content in the chat options.
  4. The application will display the answer based on the uploaded PDF file.

Extension

The extension version is also available , you can use it by uploading chrome_extension folder to developer mode .

Note

There are two python files:
~ pdfconverse.py {This is best model for this PS and application will run on this}.
~ chat.py {This is CLI based model}.

About

The PDF Converse tool can be used to upload PDFs and effectively answer all queries. With this tool, users can collaborate and engage in discussions within the context of the document itself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors