Add builder plan for vergunningzoeker

This commit is contained in:
Druppie Agent 2026-06-10 14:46:57 +00:00
parent db0e9214e0
commit b83684cc1f
1 changed files with 31 additions and 0 deletions

31
docs/builder-plan.md Normal file
View File

@ -0,0 +1,31 @@
# Builder Plan: Vergunningzoeker
## Solution Strategy
Flask backend met React frontend. OCR en classificatie via Druppie SDK.
## Module Integration
- **SDK**: `druppie_sdk` is pre-installed (pip package)
- **Usage**: `from druppie_sdk import DruppieClient; druppie = DruppieClient()`
- **Modules Used**:
- `vision/ocr` — tekst extraheren uit gescande vergunningdocumenten
- `llm/chat` — classificatie van vergunningtype op basis van geëxtraheerde tekst
- **Example Calls**:
```python
ocr_result = druppie.call("vision", "ocr", {"image_source": url})
classify_result = druppie.call("llm", "chat", {"prompt": text, "system": "Classificeer dit document"})
```
- **No API Keys**: app gebruikt GEEN hardcoded API keys
- **No openai package**: gebruik druppie.call() via SDK
## Code Standards
- Python 3.11, Flask
- ESM imports, React functional components
- SQLAlchemy voor database
## Test Framework
pytest voor backend
## Files to Create/Modify
- app/models.py — SQLAlchemy Permit model
- app/routes.py — API endpoints met druppie SDK calls
- frontend/src/App.tsx — upload + zoek UI