tests: Add tests for llm summary

This commit is contained in:
2026-07-03 09:21:49 +05:30
parent a3f2db0760
commit 9713a12591
3 changed files with 241 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ An asynchronous transactional data cleaning, validation, and LLM powered categor
- Reads multi format dates and handles missing transaction IDs by auto generating unique fallbacks, and parses messy amounts with currency signs and commas cleanly.
- Offloads validation, spend conversion, and analysis to a Celery background worker backed by Redis.
- Integrates with the Google GenAI SDK (`gemini-2.5-flash-lite` 75% cheaper than `gemini-3.5-flash-lite with no tangible decrease in performance) using structured output schemas to categorize transaction records into database-defined custom categories.
- Integrates with the Google GenAI SDK (`gemini-2.5-flash-lite` 75% cheaper than `gemini-3.5-flash-lite with no tangible decrease in performance) using structured output schemas to categorize transaction records into database- defined custom categories.
- Uses Redis caching with a 24-hour TTL to store live exchange rates, falling back to a hardcoded rate of `93.0` if offline.
- Statistical Anomaly Detection:
- Flags transactions exceeding 3 times the account's median spend as statistical outliers.