This project implements a financial analyst system using LangChain and Ollama. The system allows users to input queries related to finance, such as stock analysis, market trends, and company reports, and returns insightful and organized responses.
PromptTemplate
to format queries before sending them to the model for accurate results.To run this system, ensure you have the following libraries installed:
pip install ollama langchain
Clone the repository:
git clone https://github.com/TamerOnLine/financial-analyst-system.git
cd financial-analyst-system
Run the system:
Run the following command to start interacting with the financial analyst system:
python financial_analyst_system.py
Input Queries:
Once the system is running, you can input any finance-related query. For example:
What are the current trends in the stock market?
The system will respond with detailed, organized insights.
financial_analyst_system.py
: The main script that initializes the LangChain and Ollama integration, processes user queries, and returns formatted answers.templates/
: Contains the prompt templates used to structure user questions before sending them to the model.Input: What are the most profitable tech stocks in 2024?
Response:
- Stock A: Detailed performance metrics
- Stock B: Insights on market position
...
We welcome contributions! Please follow the steps below to contribute:
This project is licensed under the MIT License. See the LICENSE
file for more details.
Developed by Tamer.