How fakhahmed/agentic-finance-gcp works
L’application Streamlit reçoit une question, la transmet au graphe d’agents financiers et affiche la réponse de l’expert choisi. Le graphe applique d’abord un garde-fou, puis route vers les agents SQL, RAG, marchés ou conversationnel. Les extraits montrent les appels SQL, RAG et marchés ainsi que le routage, mais pas les détails de compilation, de streaming ni de persistance du graphe. Les intégrations LangSmith et BigQuery décrites dans le README ne sont pas toutes visibles dans le code échantillonné.
Main entry points: main.py Superviseur · rag_tool.py Préparation RAG · app.py Interface Streamlit · rapport_financier.pdf Rapport financier PDF
Components 17
Interface
- Interface Streamlit
app/app.py
Orchestration
- Garde-fou IA
agent/main.py - Superviseur
agent/main.py - Graphe LangGraph
agent/main.py - Mémoire conversationnelle
agent/main.py
Agents experts
- Agent SQL
agent/main.py - Agent RAG
agent/main.py - Agent conversationnel
agent/main.py - Agent marchés
agent/main.py - Préparation RAG
agent/rag_tool.py
Données et services
- Rapport financier PDF
data/rapport_financier.pdf - Index Chroma temporaire
agent/rag_tool.py - Google Vertex AI
- BigQuery
- Yahoo Finance
- LangSmith
Other components
- Analyste financier
Connections 22
- Analyste financier → Interface Streamlit: pose une question
app/app.py - Interface Streamlit → Graphe LangGraph: transmet la question
app/app.py - Graphe LangGraph → Interface Streamlit: fournit le flux
app/app.py - Graphe LangGraph → Garde-fou IA: exécute d’abord
agent/main.py - Garde-fou IA → Superviseur: autorise et route
agent/main.py - Superviseur → Agent SQL: route vers SQL
agent/main.py - Superviseur → Agent RAG: route vers RAG
agent/main.py - Superviseur → Agent conversationnel: route vers dialogue
agent/main.py - Superviseur → Agent marchés: route vers marchés
agent/main.py - Agent SQL → BigQuery: interroge
agent/main.py - Agent SQL → Google Vertex AI: génère et reformule
agent/main.py - Agent RAG → Préparation RAG: obtient le récupérateur
agent/main.py - Préparation RAG → Rapport financier PDF: charge et découpe
agent/rag_tool.py - Préparation RAG → Google Vertex AI: vectorise
agent/rag_tool.py - Préparation RAG → Index Chroma temporaire: alimente l’index
agent/rag_tool.py - Agent RAG → Index Chroma temporaire: recherche des extraits
agent/main.py - Agent RAG → Google Vertex AI: synthétise la réponse
agent/main.py - Agent marchés → Google Vertex AI: extrait le ticker
agent/main.py - Agent marchés → Yahoo Finance: récupère les cours
agent/main.py - Agent conversationnel → Google Vertex AI: génère une réponse
agent/main.py - Graphe LangGraph → Mémoire conversationnelle: utilise un checkpoint
agent/main.py - Graphe LangGraph → LangSmith: trace les échanges
README.md