A Python application that allows you to chat with multiple PDF documents. You can ask questions about the PDFs using natural language, and the application will provide relevant responses based on the content of the documents.
The application follows these steps to provide responses to your questions:
- PDF loading: The app reads multiple PDF documents and extracts their text content.
- Text chunking: The extracted text is divided into smaller chunks that can be processed effectively.
- Language model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.
- Similarity matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.
- Response generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.
To install the Data-Wizard App, please follow these steps:
- Clone the repository to your local machine.
- Install the required dependencies by running the following command:
pip install -r requirements.txt
- Obtain an API key from OpenAI and add it to the .env file in the project directory.
To use the Data-Wizard App, follow these steps:
- Ensure that you have installed the required dependencies and added the OpenAI API key to the .env file.
- Run the main.py file using the Streamlit CLI. Execute the following command:
streamlit run app.py
- The application will launch in your default web browser, displaying the user interface.
- Load multiple PDF documents into the app by following the provided instructions.
- Ask questions in natural language about the loaded PDFs using the chat interface.
We welcome contributions to the Data-Wizard App. If you have any improvements or features that you would like to add, please feel free to open a pull request.
The Data-Wizard App is licensed under the Apache License 2.0.
If you have any questions or feedback, please feel free to contact us at [manishsparihar2020@gmail.com]