A FastAPI-based system for analyzing financial documents (PDFs) using AI-powered agents. The application processes corporate reports, financial statements, and investment documents, providing investment analysis, risk assessment, and market insights through a multi-agent CrewAI workflow.
pip install -r requirements.txtuvicorn main:app --host 0.0.0.0 --port 8000 --reload- Download Tesla's Q2 2025 update from: Tesla Q2 2025 Update
- Save it as
data/sample.pdfor upload any financial PDF through the API.
Endpoint: GET /
Description: Returns a health check message.
Endpoint: POST /analyze
Description: Upload a financial PDF and receive AI-powered analysis.
Request (multipart/form-data):
file: PDF file to analyze (required)query: Analysis query (optional, default: "Analyze this financial document for investment insights")
Example using curl:
curl -X POST "http://localhost:8000/analyze" \
-F "file=@data/sample.pdf" \
-F "query=Analyze this financial document for investment insights"- Upload financial documents (PDF format)
- AI-powered financial analysis
- Investment recommendations
- Risk assessment
- Market insights