Code Monkey home page Code Monkey logo

another_streamlit's Introduction

Chat With PDFs

Chat With PDFs is a simple application that allows you to upload a PDF and ask questions about its content. It uses the OpenAI API to understand your questions and find the answers in the text of the PDF.

Features

  • PDF Upload: You can upload a PDF file to the application.
  • Text Extraction: The application extracts the text from the uploaded PDF.
  • Question Answering: You can ask questions about the content of the PDF, and the application will find the answers in the text.

Usage

When you run the application, you will see an interface where you can upload a PDF file. After uploading the file, you can enter a question in the text input field. The application will then search the text of the PDF for the answer to your question and display the answer.

Dependencies

The application depends on several Python libraries, including:

  • python-dotenv for loading environment variables.
  • streamlit for creating the application interface.
  • PyPDF2 for reading PDF files.
  • langchain for text splitting, embeddings, vector stores, and question answering.

Please see the requirements.txt file for the exact versions of these dependencies.

Installation

To install the application, first clone this repository:

git clone https://github.com/samz905/chat-with-pdfs.git

Then, navigate to the project directory and install the dependencies:

cd ask-your-pdf
pip install -r requirements.txt

Finally, run the application:

streamlit run main.py

License

This project is licensed under the terms of the MIT license.

another_streamlit's People

Contributors

samz905 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.