FinAnalyst, finansal tabloları analiz eden ve kullanıcıların İngilizce sorularına doğru ve açıklayıcı cevaplar üreten yapay zeka destekli bir soru-cevap asistanıdır.
- Google Flan-T5-Large modeli ile güçlendirilmiş
- Finansal tabloları anlama ve analiz etme
- Doğal dil ile soru-cevap
- Detaylı finansal hesaplamalar
- WebSocket tabanlı gerçek zamanlı iletişim
- Anlık mesajlaşma deneyimi
- Dosya yükleme ve analiz
- Bağlantı durumu takibi
- Responsive tasarım
- Framer Motion animasyonları
- Glassmorphism efektleri
- Tailwind CSS ile modern stil
- CORS koruması
- Input validasyonu
- Rate limiting
- Güvenli dosya işleme
finalayst/
├── Frontend/ # React Frontend
│ ├── public/
│ ├── src/
│ │ ├── components/ # UI Bileşenleri
│ │ ├── pages/ # Sayfa Bileşenleri
│ │ ├── services/ # API Servisleri
│ │ └── utils/ # Yardımcı Fonksiyonlar
│ ├── package.json
│ └── tailwind.config.js
├── Backend/ # FastAPI Backend
│ ├── app/
│ │ ├── api/ # API Endpoints
│ │ ├── core/ # Konfigürasyon
│ │ ├── models/ # Pydantic Modeller
│ │ ├── services/ # İş Mantığı
│ │ └── utils/ # Yardımcı Fonksiyonlar
│ ├── requirements.txt
│ └── Dockerfile
└── README.md


git clone https://github.com/Efe-Eroglu/FinAnalyst-Chatbot.git
cd finqa
cd Frontend
npm install
npm start
Frontend: http://localhost:3000
cd Backend
pip install -r requirements.txt
uvicorn app.main:app --reload
Backend: http://localhost:8000
# Model dosyalarını /models/finbot-peft-model/ klasörüne yerleştirin
mkdir -p /models/finbot-peft-model/
# Model dosyalarınızı buraya kopyalayın
POST /api/v1/chat
- Mesaj göndermeGET /api/v1/health
- Sağlık kontrolüGET /api/v1/model-info
- Model bilgileri
WS /ws/chat
- Real-time chat
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- Model: google/flan-t5-large
- Mimari: Encoder-Decoder (text-to-text)
- Parametreler: ~770M
- Fine-tuning: PEFT (Parameter Efficient Fine-tuning)
Table: [finansal tablo verisi]
Context: [ek bağlam]
Question: [kullanıcı sorusu]
[Doğal dil yanıtı]
cd Frontend
npm run dev # Geliştirme sunucusu
npm run build # Production build
cd Backend
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
black . # Kod formatı
flake8 . # Linting
# Backend
cd Backend
docker build -t finanalyst-backend .
docker run -p 8000:8000 finanalyst-backend
# Frontend
cd Frontend
docker build -t finanalyst-frontend .
docker run -p 3000:3000 finanalyst-frontend
# Backend (.env)
HOST=0.0.0.0
PORT=8000
DEBUG=true
MODEL_PATH=/models/finbot-peft-model/
MAX_INPUT_LENGTH=512
MAX_OUTPUT_LENGTH=128
TEMPERATURE=0.7
TOP_P=0.95
SECRET_KEY=your-secret-key
BACKEND_CORS_ORIGINS=[
"http://localhost:3000",
"http://localhost:3001"
]
- Inference Time: ~2-5 saniye
- Memory Usage: ~4GB RAM
- GPU: Önerilen (12GB+ VRAM)
- Response Time: < 5 saniye
- Concurrent Users: 100+
- Rate Limit: 60 istek/dakika
cd Frontend
npm test
npm run test:coverage
cd Backend
pytest tests/
pytest --cov=app tests/
# Frontend
cd Frontend
npm run build
# Backend
cd Backend
gunicorn app.main:app -w 4 -k uvicorn.workers.UvicornWorker
version: '3.8'
services:
frontend:
build: ./Frontend
ports:
- "3000:3000"
backend:
build: ./Backend
ports:
- "8000:8000"
volumes:
- ./models:/models
- Fork yapın
- Feature branch oluşturun (
git checkout -b feature/amazing-feature
) - Commit yapın (
git commit -m 'Add amazing feature'
) - Push yapın (
git push origin feature/amazing-feature
) - Pull Request açın
Bu proje MIT lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakın.
Efe Eroğlu
- Email: efeeroglu.dev@gmail.com
- GitHub: @efeeroglu
- LinkedIn: Efe Eroğlu
Proje hakkında sorularınız için:
- Email: efeeroglu.dev@gmail.com
- GitHub: https://github.com/efeeroglu
- LinkedIn: https://linkedin.com/in/efeeroglu
Made with by Efe Eroğlu
FinAnalyst - Akıllı Finansal Soru-Cevap Asistanı