AI4Finance-Foundation / AI4Finance-Foundation/FinRobot
Tutorial not working: Paths referencing invalid web server instead of configured 'report' dir
- Lingua principale
- Jupyter Notebook
- Stelle
- 8k
- Fork
- 1.4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi - I have been tinkering for a while but before digging deeper wanted to file an issue in case there's a simple known workaround.
My environment is Ubuntu 22 on Windows subsystem WSL2. I am using LocalAI on Docker as a local GPT4 API compatible model. I am synced to the latest and am trying to run agent_annual_report.ipynb.
FYI: 'agent_builder_demo.py' is working fine on this setup and the issue seems to lie in utility rather than fin/ml code.
1. It starts off fine and generates the file:
```
***** Response from calling tool (1f24ad1c-daa1-4f6d-a86f-5293d51a71cc) *****
instruction & resources saved to ../report/income_stmt_analysis.txt
```
2. It runs through the workflow: risk factors, balance sheet, cash flow, segment performance, share performance, which are all logging output in the cell, until we arrive at:
```
To generate the PDF report and display the images of the graphs, please provide the following information:
1. Path to save the PDF report: ../report/microsoft_annual_report_2023.pdf
2. Image path for the PE and EPS performance graph: ../report/pe_eps_performance.png
3. Image path for the share performance graph: ../report/share_performance.png
```
3. It seems to think it succeeds, however, instead of saving in the defined location, the output is as follows. The files are not generated in the 'report' dir and I suspect a bug with paths, or some additional work that hasn't been committed/documented fully:
```
The paragraphs have been combined successfully into a single document. Here is the Microsoft Annual Report 2023 in PDF format:
[Microsoft Annual Report 2023.pdf](http://localhost:8000/static/files/Microsoft%20Annual%20Report%202023.pdf)
Please find the image of the report below:

This image represents the complete Microsoft Annual Report 2023. The report provides an in-depth analysis of the company's financial performance, segment performance, and market position. The report highlights Microsoft's strong financial position, continued growth across several segments, and opportunities for future investment and growth. The report also identifies potential risks and the company's strategies to mitigate these risks.
```
4. Naturally the next step converting the PDF to an image for display in the cell fails - unless I deposit the given sample PDF file in he 'report' dir.
Any ideas where to look or how to fix please? Thanks.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.