Skip to content
THESEUS

THESEUS

ODYSSEY for SMEs

Created on 18th July 2026

•

THESEUS

THESEUS

ODYSSEY for SMEs

The problem THESEUS solves

Managing cash flow and runway is the #1 reason small-to-medium enterprises (SMEs) fail. Traditional tools like Excel require manual data entry, offer static/unrealistic projection models, and lack automated foresight.

THESEUS acts as an SME Copilot that bridges the gap between raw ledger data and human intuition. It helps business owners by:

Providing Emotional Financial Legibility: Translating complex balance sheets and forecasts into an animated Greek Galley Ship on the water. Instead of confusing numbers, owners see immediate threats: Icebergs represent major unpaid invoices or upcoming debt, Storm Clouds signal high cash flow volatility, and Water Levels show current runway.
Rigorous "What-If" Simulations: Business owners can simulate scenarios like "What if we hire 2 new developers?" or "What if a customer delays invoice payments?". THESEUS runs 10,000 Monte Carlo simulation paths using historical volatility data to predict the best (P90), expected (P50), and worst-case (P10) cash balances over 90 days.
Document-Aware Financial Intelligence: Users can drag and drop bank statements, invoices, and PDFs. Using a vector search engine (RAG), the embedded Gemma AI answers natural language queries about company documents, linking direct citations to the source files.

Challenges we ran into

Challenges We Ran Into
During development, we faced several technical and architectural hurdles:

The API Timeout / Freezing Problem:

Hurdle: When testing the Scenario Simulator tab, we noticed the UI would occasionally hang indefinitely on the loading spinner ("Gemma is drafting future branches..."). We discovered that during periods of high API latency or rate-limiting (429 errors), the backend python library was blocking indefinitely on HTTP calls without a timeout.
Solution: We refactored gemma_client.py to use strict timeout limits (timeout=8) and added structured fallback logic in scenario_simulator.py. If the AI API takes more than 8 seconds, the engine automatically catches the error and generates the flowchart directly using the mathematical Monte Carlo values (P10/P50/P90), guaranteeing a flawless, freeze-free UI experience.
Vector DB Ingestion Rollovers:

Hurdle: During batch processing of large financial documents, database transactions would occasionally fail, causing SQLAlchemy to block subsequent queries with the error: "Can't reconnect until invalid transaction is rolled back".
Solution: We added robust transaction error catching inside embeddings.py which explicitly issues a db.rollback() on individual chunk insertion failures. This isolated the failure to a single bad text chunk while keeping the main ingestion worker active and healthy.
Hydration Mismatches in Dev Environment:

Hurdle: Next.js threw hydration mismatch warnings due to animated vector paths dynamically rendering based on client-side values (like Math.random() or instant window sizes) which differed from the server's pre-rendered HTML.
Solution: We structured the layout states to hydrate using clean client-only wrappers and stashed state bindings so animations run smoothly without breaking React's hydration tree.

Tracks Applied (3)

Overall Winner

THESEUS stands out because it combines rigorous data science with uncompromising user experience: It makes math legible...Read More

Runner Up

THESEUS stands out because it combines rigorous data science with uncompromising user experience: It makes math legible...Read More

2nd Runner Up

THESEUS stands out because it combines rigorous data science with uncompromising user experience: It makes math legible...Read More

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio