THESEUS

ODYSSEY for SMEs

Build with GemmaShipped July 20, 2026#ai#payments
Repo
THESEUS banner

About

## The problem it 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.

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.