File size: 1,673 Bytes
1a4d9d3
 
 
 
 
 
 
 
 
 
 
 
43add07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: Financial Chatbot
emoji: πŸ’°
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: "1.26.0"
app_file: app.py
pinned: false
---


Financial Chatbot for Infosys Financial Reports
------------------------------------------------
- This is a Retrieval-Augmented Generation (RAG) chatbot designed to answer questions about Infosys financial statements from the last two years (2022-2024). 
- The chatbot uses open-source models and advanced retrieval techniques to provide accurate and concise answers.

Project Structure
------------------
- The project is organized as follows:
```
Financial-Chatbot/
β”œβ”€β”€ app.py                  # Streamlit application interface
β”œβ”€β”€ chroma_db/              # Chroma vector database storage
β”œβ”€β”€ Infy financial report/  # Folder containing Infosys financial PDFs
β”‚   β”œβ”€β”€ INFY_2022_2023.pdf
β”‚   └── INFY_2023_2024.pdf
β”œβ”€β”€ requirements.txt        # Python dependencies
β”œβ”€β”€ utils.py                # Core functionality and RAG implementation
└── README.md               # This file
```

Installation
--------------
Python Version: ```Python 3.10.xx```

Python lib requirements: ```pip install -r requirements.txt```


Place PDFs:
------------
- Ensure the Infosys financial reports (INFY_2022_2023.pdf and INFY_2023_2024.pdf) are placed in the Infy financial report/ folder.


Running the Application
------------------------
- To start the chatbot, run the following command:

```streamlit run app.py --server.enableCORS false```

- The application will start and provide a local URL (e.g., http://localhost:8501). Open this URL in your browser to interact with the chatbot.