{"id":17487504,"url":"https://github.com/tameronline/ai-financial-analyst","last_synced_at":"2026-02-02T01:02:53.903Z","repository":{"id":258321267,"uuid":"873672260","full_name":"TamerOnLine/AI-Financial-Analyst","owner":"TamerOnLine","description":"AI-driven financial analyst system utilizing LangChain and Ollama for real-time stock analysis, market trends, and financial insights.","archived":false,"fork":false,"pushed_at":"2024-10-16T23:29:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T16:19:08.817Z","etag":null,"topics":["ai","data-analysis","finance","financial-analysis","langchain","machine-learning","nlp","ollama","stock-market"],"latest_commit_sha":null,"homepage":"https://tameronline.github.io/AI-Financial-Analyst/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TamerOnLine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T14:34:36.000Z","updated_at":"2024-10-16T23:29:55.000Z","dependencies_parsed_at":"2024-10-19T02:05:40.985Z","dependency_job_id":null,"html_url":"https://github.com/TamerOnLine/AI-Financial-Analyst","commit_stats":null,"previous_names":["tameronline/ai-financial-analyst"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2FAI-Financial-Analyst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2FAI-Financial-Analyst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2FAI-Financial-Analyst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2FAI-Financial-Analyst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TamerOnLine","download_url":"https://codeload.github.com/TamerOnLine/AI-Financial-Analyst/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252704,"owners_count":21072701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","data-analysis","finance","financial-analysis","langchain","machine-learning","nlp","ollama","stock-market"],"created_at":"2024-10-19T03:04:51.519Z","updated_at":"2026-02-02T01:02:53.863Z","avatar_url":"https://github.com/TamerOnLine.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Financial Analyst System using LangChain and Ollama\n\nThis 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.\n\n## Features\n\n- **Interactive Financial Queries**: Users can input finance-related questions, and the system responds with structured, useful answers.\n- **LangChain Integration**: Utilizes LangChain's `PromptTemplate` to format queries before sending them to the model for accurate results.\n- **Ollama Model**: Uses Ollama for AI-driven query handling, delivering concise and relevant financial insights.\n- **Continuous Interaction**: The system stays active and continuously processes user inputs until explicitly stopped.\n- **Error Handling**: Robust error handling ensures smooth operations and prevents system crashes.\n\n## Requirements\n\nTo run this system, ensure you have the following libraries installed:\n\n```bash\npip install ollama langchain\n```\n\n## Usage\n\n1. **Clone the repository**:\n   \n   ```bash\n   git clone https://github.com/TamerOnLine/financial-analyst-system.git\n   cd financial-analyst-system\n   ```\n\n2. **Run the system**:\n\n   Run the following command to start interacting with the financial analyst system:\n\n   ```bash\n   python financial_analyst_system.py\n   ```\n\n3. **Input Queries**: \n\n   Once the system is running, you can input any finance-related query. For example:\n\n   ```bash\n   What are the current trends in the stock market?\n   ```\n\n   The system will respond with detailed, organized insights.\n\n## Code Structure\n\n- `financial_analyst_system.py`: The main script that initializes the LangChain and Ollama integration, processes user queries, and returns formatted answers.\n- `templates/`: Contains the prompt templates used to structure user questions before sending them to the model.\n\n## Example\n\n```bash\nInput: What are the most profitable tech stocks in 2024?\n\nResponse:\n- Stock A: Detailed performance metrics\n- Stock B: Insights on market position\n...\n```\n\n## Future Improvements\n\n- **Data Integration**: Add real-time financial data integration from APIs to enhance response accuracy.\n- **Advanced Analysis**: Implement deeper financial analysis and machine learning-based predictions.\n\n## Contributing\n\nWe welcome contributions! Please follow the steps below to contribute:\n\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes and commit them.\n4. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n\n---\n\n**Developed by [Tamer](https://www.linkedin.com/in/tameronline)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fai-financial-analyst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameronline%2Fai-financial-analyst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fai-financial-analyst/lists"}