FinBot is a Flask-based chatbot enhanced with Natural Language Processing (NLP) capabilities using NLTK and powered by the advanced generative abilities of OpenAI's GPT-3.5 Turbo. Designed to make financial data accessible and actionable through natural language queries, FinBot serves as a bridge between complex financial information and users, enabling queries about financial metrics such as revenue and earnings of companies in an intuitive conversational manner.
- Natural Language Understanding: Uses NLTK for sophisticated text processing, including tokenization and part-of-speech tagging.
- Generative AI Integration: Leverages OpenAI's GPT-3.5 Turbo for dynamic, contextually relevant responses to complex queries.
- Flask Web Application: A user-friendly web interface that facilitates easy interaction with the chatbot.
- Financial Insights: Provides actionable financial insights through natural language queries, making it easier to access and understand financial data.
- Python 3.x
- Flask, NLTK, pandas, OpenAI
- An OpenAI API key
Clone the repository and install the dependencies:
git clone https://github.com/rajaththomson/BCG-Gen-AI-Project.git
cd BCG-Gen-AI-Project
pip install -r requirements.txt
Ensure NLTK datasets are downloaded:
import nltk
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
nltk.download('wordnet')
Set your OpenAI API key in your environment or directly in the application.
Start the Flask app:
python app.py
Navigate to http://127.0.0.1:5001/
in your web browser to interact with FinBot.
![Screenshot 2024-04-11 012809](https://private-user-images.githubusercontent.com/40268159/321438284-36187b5f-cf22-4303-bef3-de9ddfd4dbea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTQzNDQsIm5iZiI6MTczOTUxNDA0NCwicGF0aCI6Ii80MDI2ODE1OS8zMjE0MzgyODQtMzYxODdiNWYtY2YyMi00MzAzLWJlZjMtZGU5ZGRmZDRkYmVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDA2MjA0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmYmQ5ODliNzk1MDAyYzc3ODA4NWM4ZDhmOTgxOTVhNWMyOWMzNmNlNGRiMWJjZGJjMDY1MTljODk2NjkxYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7fx6zcoyo84wpXgRm_Sj6tRro434Q3DRn0cC8xrXtnE)
Distributed under the MIT License. See LICENSE
for more information.
- NLTK Team for their incredible NLP library.
- OpenAI for making advanced AI accessible.
- Flask for being an excellent web framework for Python.
Mathew Rajat Thomson
Project Link: https://github.com/rajaththomson/BCG-Gen-AI-Project