Boakye I. Ababio commited on
Commit
635949c
1 Parent(s): 7770320

rectify rreadne config templete

Browse files
Files changed (1) hide show
  1. README.md +1 -71
README.md CHANGED
@@ -8,74 +8,4 @@ sdk_version: 1.32.2
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
-
15
-
16
-
17
- # MultiPDF Chat App
18
-
19
- > You can find the tutorial for this project on [YouTube](https://youtu.be/dXxQ0LR-3Hg).
20
-
21
- ## Introduction
22
- ------------
23
- The MultiPDF Chat App is 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. This app utilizes a language model to generate accurate answers to your queries. Please note that the app will only respond to questions related to the loaded PDFs.
24
-
25
- ## How It Works
26
- ------------
27
-
28
- ![MultiPDF Chat App Diagram](./docs/PDF-LangChain.jpg)
29
-
30
- The application follows these steps to provide responses to your questions:
31
-
32
- 1. PDF Loading: The app reads multiple PDF documents and extracts their text content.
33
-
34
- 2. Text Chunking: The extracted text is divided into smaller chunks that can be processed effectively.
35
-
36
- 3. Language Model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.
37
-
38
- 4. Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.
39
-
40
- 5. Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.
41
-
42
- ## Dependencies and Installation
43
- ----------------------------
44
- To install the MultiPDF Chat App, please follow these steps:
45
-
46
- 1. Clone the repository to your local machine.
47
-
48
- 2. Install the required dependencies by running the following command:
49
- ```
50
- pip install -r requirements.txt
51
- ```
52
-
53
- 3. Obtain an API key from OpenAI and add it to the `.env` file in the project directory.
54
- ```commandline
55
- OPENAI_API_KEY=your_secrit_api_key
56
- ```
57
-
58
- ## Usage
59
- -----
60
- To use the MultiPDF Chat App, follow these steps:
61
-
62
- 1. Ensure that you have installed the required dependencies and added the OpenAI API key to the `.env` file.
63
-
64
- 2. Run the `main.py` file using the Streamlit CLI. Execute the following command:
65
- ```
66
- streamlit run app.py
67
- ```
68
-
69
- 3. The application will launch in your default web browser, displaying the user interface.
70
-
71
- 4. Load multiple PDF documents into the app by following the provided instructions.
72
-
73
- 5. Ask questions in natural language about the loaded PDFs using the chat interface.
74
-
75
- ## Contributing
76
- ------------
77
- This repository is intended for educational purposes and does not accept further contributions. It serves as supporting material for a YouTube tutorial that demonstrates how to build this project. Feel free to utilize and enhance the app based on your own requirements.
78
-
79
- ## License
80
- -------
81
- The MultiPDF Chat App is released under the [MIT License](https://opensource.org/licenses/MIT).
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ ---