Coder Social home page Coder Social logo

multi-pdf-chat-ai's Introduction

Chat with Multiple PDFs

This Streamlit application allows users to interact with a conversational AI model that can reference and retrieve information from multiple uploaded PDF documents. It's an ideal tool for quickly querying content from a set of documents using natural language.

Features

  • Multiple PDF Uploads: Users can upload several PDF documents, which the app will process and use as a reference for answering queries.
  • Conversational AI: Leveraging a conversational AI model, the app provides responses based on the content of the uploaded PDFs.
  • Streamlit Interface: A user-friendly interface created with Streamlit, allowing for easy interaction and usage.

How It Works

  1. Upload PDFs: Users upload their PDF documents through the Streamlit sidebar.
  2. Process PDFs: The application processes the uploaded PDFs to extract text and prepare it for the AI model.
  3. Ask Questions: Users can ask questions in a text input field. The AI model references the processed PDF texts to answer these questions.
  4. View Conversation History: The application displays the conversation history between the user and the AI.

Installation

To run this app, you need Python and several dependencies installed.

  1. Clone this repository: git clone https://github.com/yourusername/your-repo-name.git

  2. Navigate to the cloned directory and install the required packages:

cd your-repo-name pip install -r requirements.txt

  1. Run the Streamlit application:

streamlit run app.py

Dependencies

  • Streamlit
  • PyPDF2
  • dotenv
  • LangChain
  • FAISS
  • OpenAI

Usage

After starting the app:

  1. Upload PDF files by clicking on the 'Upload your PDFs here' button in the sidebar.
  2. Click 'Process' to start processing the uploaded files.
  3. Enter your query in the 'Ask a question about your documents' input field.
  4. The AI response will be displayed on the main screen.

Contributing

Contributions to improve this application are welcome. Please feel free to fork the repository and submit pull requests.

License

MIT License

Contact

For any queries or feedback, please reach out to [email protected].

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.