Inspiration

I started thinking about a simple problem: people make important decisions based on information they haven't fully checked.

A tenancy agreement is a good example. You can ask an AI whether the landlord pays for water and get a confident answer. But what if the agreement says the landlord pays only up to a certain monthly usage? That exception matters.

The problem isn't just getting an answer. It's knowing exactly where the answer came from, whether the evidence supports it, and what to do when it doesn't.

That's why I built SETTLE.

What it does

SETTLE is an offline-first document intelligence application that helps people understand documents and verify AI-generated answers against their original sources.

Users can import a document, ask questions about it, and receive answers with supporting quotations. The initial analysis runs locally using Gemini Nano, so users can work without sending their documents to a cloud service.

Answers begin as provisional. When an internet connection is available, users can explicitly approve a cloud review through Firebase AI Logic. The review checks whether the quoted evidence actually supports the claim.

SETTLE also connects claims to tasks, helping users keep track of actions that depend on information in their documents.

The goal is simple: make AI answers easier to inspect before acting on them.

How we built it

We built SETTLE as a web application using React, TypeScript, and Firebase.

Gemini Nano handles on-device inference, allowing document questions to be processed locally. Firebase AI Logic provides the cloud review layer, while Firebase Authentication and Cloud Firestore support user accounts and synchronization of claims and tasks across devices.

We also implemented explicit consent before cloud review. Users remain in control of when information leaves their device.

The application uses local browser storage for document data and maintains the distinction between provisional answers, source-supported claims, unsupported claims, and revised claims.

Challenges we ran into

The hardest part was making the offline and cloud experiences work together without undermining the privacy principle behind the project.

On-device AI availability depends on browser and hardware support. That meant we had to account for model availability, initialization, and failure states rather than assume every device could run Gemini Nano.

We also had to think carefully about verification. A quotation appearing beside an answer does not automatically mean the quotation supports it. SETTLE needed a separate review step to evaluate that relationship.

Firebase integration introduced its own challenges, particularly around authentication, Firestore security rules, synchronization, and testing behavior against the emulator.

Balancing all of these pieces while keeping the application understandable was a significant part of the work.

Accomplishments that we're proud of

We're proud that SETTLE is more than a document chatbot.

It separates generating an answer from checking whether that answer is supported. It gives users access to the original evidence, makes cloud review an explicit choice, and connects claims to tasks.

We also built and tested the core application logic, including its automated test suite and Firestore emulator tests.

Most importantly, we turned an abstract concern about AI reliability into something people can actually interact with: a document, a question, an answer, its source, and a way to check it.

What we learned

We learned that adding AI to an application is not the same as making its output reliable.

The model can produce an answer, but the application still has to establish where that answer came from, whether the evidence supports it, and how uncertainty should be communicated.

We also learned that offline-first development requires more than caching a page. It changes how inference, storage, synchronization, and user consent must be designed.

Firebase gave us the infrastructure to connect local AI workflows with authenticated accounts, synchronized application data, and cloud-based verification.

What's next for SETTLE

We want to expand SETTLE beyond tenancy agreements into other documents people make important decisions from: employment contracts, loan agreements, policies, and business documents.

Next, we want to improve retrieval accuracy, strengthen cross-device document continuity, test on a wider range of Nano-compatible devices, and make claim verification more robust.

The longer-term goal is to give people a practical way to question important documents, inspect the evidence behind AI answers, and make decisions with more confidence.

SETTLE. Answers you can trace. Checks you control.

Built With

Share this project:

Updates

Submission history