Git Product home page Git Product logo

pdfreader's Introduction


PDF Chatbot

This is a Python-based chatbot that extracts text from PDF files, allows users to ask questions based on the content, and retrieves relevant answers from the extracted text. It utilizes various libraries and tools for natural language processing, text extraction, and conversational retrieval.

Installation

To install the dependencies, run:

pip install -r requirements.txt

Usage

1. Run the Chatbot: Execute the main script main.py.

2. Upload PDF File: The bot prompts the user to upload a PDF file. Once the file is uploaded, it processes the text content.

3. Ask Questions: After processing, users can ask questions related to the PDF content.

4. Get Answers: The chatbot retrieves relevant answers from the processed text and provides them to the user.

Libraries Used

  • PyPDF2: For reading PDF files and extracting text content.

  • Langchain: A library for natural language processing tasks, including text splitting, embeddings, and conversational retrieval.

  • Chainlit: A library for building asynchronous chatbot systems.

Functionalities

  • Text Extraction: Extracts text content from uploaded PDF files.

  • Conversational Retrieval: Utilizes conversational retrieval chains to answer user questions based on the extracted text.

  • Asynchronous Processing: Handles user interactions asynchronously for a seamless chat experience.

Contributing

Contributions are welcome! Feel free to submit issues, feature requests, or pull requests.


pdfreader's People

Contributors

ashwinunnikrishnan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.