FIN_GPT is an AI-powered application that allows users to ask questions and get insights about the Indian Budget 2024, presented by Nirmala Sitharaman. The application uses natural language processing and machine learning techniques to provide accurate and relevant information from official press releases and budget documents.
- Question-answering system: Get answers about the Indian Budget 2024.
- Budget comparison: Compare the 2023 and 2024 budgets.
- Official datasets: Utilizes official press releases and budget documents (in PDF form).
- Interactive chat interface: Powered by Streamlit.
- OpenAI models: Leverages advanced language models for intelligent responses.
-
Clone the repository:
git clone https://github.com/tejanshsachdeva/fin-gpt.git cd fin-gpt -
Install the required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API key:
- Create a
.envfile in the project root. - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and navigate to the provided local URL (usually
http://localhost:8501). -
Start asking questions about the Indian Budget 2024 in the chat interface.
The application uses official press releases and budget documents for the years 2023 and 2024. These documents should be placed in the pdfs directory in PDF format.
- The application loads and processes the PDF documents containing budget information.
- It creates vector and summary indices for efficient querying.
- An AI agent is initialized with specialized tools for answering budget-related questions.
- Users can input questions through the Streamlit chat interface.
- The AI agent processes the questions and provides relevant answers using the prepared indices.
You can customize the following aspects of the application:
- OpenAI models: Adjust the models used for summary, Q&A, and embeddings (modify the constants at the beginning of the script).
- System prompt: Change the
system_promptin theload_agentfunction to modify how the AI agent responds. - Tools: Add more tools or modify existing ones to enhance the agent's capabilities.
Contributions are welcome! Please feel free to submit a pull request to improve the application.