Athsara commited on
Commit
2cbaf46
·
verified ·
1 Parent(s): 5e416e3

Update readme.md

Browse files
Files changed (1) hide show
  1. readme.md +92 -69
readme.md CHANGED
@@ -1,69 +1,92 @@
1
- # MultiPDF Chat App
2
-
3
- ## Introduction
4
-
5
- ---
6
-
7
- 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.
8
-
9
- ## How to Run the Program
10
-
11
- To set up and run the program, follow these steps:
12
-
13
- 1. Create a virtual environment:
14
-
15
- ```bash
16
- python -m venv venv
17
- ```
18
-
19
- 2. Activate the virtual environment:
20
-
21
- - On Windows:
22
- ```bash
23
- venv\Scripts\activate
24
- ```
25
- - On macOS/Linux:
26
- ```bash
27
- source venv/bin/activate
28
- ```
29
-
30
- 3. Install the required dependencies
31
- ```bash
32
- pip install -r requirements.txt
33
- ```
34
- 4. Obtain an API key from GrokAI and add it to the `.env` file in the project directory.
35
-
36
- ```commandline
37
- GROK_API_KEY=your_secrit_api_key
38
- ```
39
-
40
- 5. Run the application:
41
- ```bash
42
- streamlit run app.py
43
- ```
44
-
45
- Once completed, the app will open in your default web browser. If it doesn't, check the terminal for the link (usually `http://localhost:8501`).
46
-
47
- ## How It Works
48
-
49
- ---
50
-
51
- ![MultiPDF Chat App Diagram](./docs/PDF-LangChain.jpg)
52
-
53
- The application follows these steps to provide responses to your questions:
54
-
55
- 1. PDF Loading: The app reads multiple PDF documents and extracts their text content.
56
-
57
- 2. Text Chunking: The extracted text is divided into smaller chunks that can be processed effectively.
58
-
59
- 3. Language Model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.
60
-
61
- 4. Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.
62
-
63
- 5. Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.
64
-
65
- ## License
66
-
67
- ---
68
-
69
- The MultiPDF Chat App is released under the [MIT License](https://opensource.org/licenses/MIT).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AI Tax Agent App
2
+
3
+ # DOGE Grok AI
4
+
5
+ [![Live Demo](https://img.shields.io/badge/Live-Demo-brightgreen)](https://huggingface.co/spaces/Athsara/DOGE-grok-ai-dev)
6
+
7
+ ## Introduction
8
+
9
+ ---
10
+
11
+ An AI-driven chatbot to assist citizens with tax inquiries, provide accurate information from a knowledge base, and facilitate appointment bookings for audits and inquiries efficiently.
12
+
13
+ ## How to Run the Program Locally
14
+
15
+ To set up and run the program, follow these steps:
16
+
17
+ 1. Create a virtual environment:
18
+
19
+ ```bash
20
+ python -m venv venv
21
+ ```
22
+
23
+ 2. Activate the virtual environment:
24
+
25
+ - On Windows:
26
+ ```bash
27
+ venv\Scripts\activate
28
+ ```
29
+ - On macOS/Linux:
30
+ ```bash
31
+ source venv/bin/activate
32
+ ```
33
+
34
+ 3. Install the required dependencies
35
+ ```bash
36
+ pip install -r requirements.txt
37
+ ```
38
+ 4. Obtain an API key from GrokAI and add it to the `.env` file in the project directory.
39
+
40
+ ```commandline
41
+ GROK_API_KEY=your_secrit_api_key
42
+ ```
43
+
44
+ 5. Run the application:
45
+ ```bash
46
+ streamlit run app.py
47
+ ```
48
+
49
+ Once completed, the app will open in your default web browser. If it doesn't, check the terminal for the link (usually `http://localhost:8501`).
50
+
51
+ ## Technologies Used
52
+
53
+ ![Grok AI](https://img.shields.io/badge/Grok_AI-563D7C?style=for-the-badge&logo=GrokAI&logoColor=white)
54
+ ![Streamlit](https://img.shields.io/badge/Streamlit-FF4B4B?style=for-the-badge&logo=streamlit&logoColor=white)
55
+ ![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)
56
+ ![LangChain](https://img.shields.io/badge/LangChain-000000?style=for-the-badge&logo=langchain&logoColor=white)
57
+ ![HuggingFace](https://img.shields.io/badge/HuggingFace-F9DC3E?style=for-the-badge&logo=huggingface&logoColor=black)
58
+ ![FAISS](https://img.shields.io/badge/FAISS-2E3440?style=for-the-badge)
59
+ ![Dotenv](https://img.shields.io/badge/Dotenv-007ACC?style=for-the-badge&logo=dotenv&logoColor=white)
60
+ ![HTML5](https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white)
61
+ ![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white)
62
+ ![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)
63
+ ![NLP](https://img.shields.io/badge/NLP-FF5722?style=for-the-badge)
64
+ ![AI Chatbot](https://img.shields.io/badge/AI_Chatbot-4CAF50?style=for-the-badge)
65
+
66
+ **Note:** Some technologies like Grok AI and LangChain might not have official logos available on Shields.io. In such cases, you can create custom badges or use alternative visual representations.
67
+
68
+ ### Detailed List with Descriptions
69
+
70
+ ```markdown
71
+ ## Technologies Used
72
+
73
+ - **Grok AI**: API used for interfacing with the GrokAI language model, facilitating the generation of conversational responses and enhancing the chatbot's ability to understand and process user queries effectively.
74
+ - **Streamlit**: Framework used for building the interactive web application interface.
75
+ - **Python**: The primary programming language utilized for development.
76
+ - **LangChain**: Framework facilitating the integration and management of language models within the application.
77
+ - **HuggingFace**: Platform used for deploying the application online, leveraging Hugging Face’s infrastructure and services.
78
+ - **FAISS**: Vector search library for efficient similarity search and indexing of embeddings.
79
+ - **Dotenv**: Manages environment variables securely, keeping sensitive information like API keys safe.
80
+ - **HTML/CSS**: Technologies used for frontend customization and styling of the web application.
81
+ - **JavaScript**: Adds interactivity and dynamic behavior to the frontend components.
82
+ - **Conversational AI**: Core technology enabling the chatbot to engage in interactive dialogues based on user input.
83
+ - **Natural Language Processing (NLP)**: Field of AI focused on the interaction between computers and human language, underpinning the chatbot's functionality.
84
+ - **Vector Databases**: Manage and query vectorized data efficiently, essential for handling embeddings and similarity searches.
85
+ - **AI Chatbot**: The primary functionality of the application, enabling interactive conversations based on the content of multiple PDFs.
86
+
87
+ ## License
88
+
89
+ ---
90
+
91
+ The AI Tax Agent App is released under the [MIT License](https://opensource.org/licenses/MIT).
92
+ ```