API for classifying transactions by type using OpenAI Text Completion API
- /classify_transactions/ - takes in a CSV file (use the one provided in /data as an example) and returns a JSON with transactions grouped by their type
Groceries, Shopping, Building Improvement, Work, Utility Bills, Professional Services, Software/IT and Other
-
Install all depedencies with
poetry install
-
insert your OpenAI API Key in
local.env
-
(optional) set limit to how many transactions get processed in
local.env
-
run with
python src/routes.py
-
access Swagger at
http://localhost:8000/docs