Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ shared secret is needed.
https://floatchat.vercel.app,http://localhost:3000
```

5. Open the site and ask a question. The run log should fill in step by step and the answer should stream in.
If you later add a custom domain on Vercel, add it to `ALLOWED_ORIGINS` too.
5. In **Vercel → your project → Settings → Environment Variables**, add `NEXT_PUBLIC_SITE_URL` = that URL and
redeploy, so shared links show your site's preview image (the default is the original demo's address).
6. Open the site and ask a question. The run log should fill in step by step and the answer should stream in.
If you later add a custom domain on Vercel, add it to `ALLOWED_ORIGINS` and `NEXT_PUBLIC_SITE_URL` too.

## 6. Streamlit Community Cloud: the old interim UI (optional)

Expand Down
Binary file modified docs/screenshots/web-chat-sql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 45 additions & 45 deletions eval/latest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"api": "https://floatchat-ai-svjw.onrender.com",
"ran_at": "2026-11-08 18:16 UTC",
"ran_at": "2026-11-09 05:16 UTC",
"summary": {
"cases": 30,
"passed": 29,
"routing_accuracy": 0.967,
"passed": 30,
"routing_accuracy": 1.0,
"filter_accuracy": 1.0,
"answer_pass_rate": 1.0,
"median_latency_ms": 2595,
"llm_routed": 28,
"llm_wrote_answer": 30,
"median_latency_ms": 1929,
"llm_routed": 30,
"llm_wrote_answer": 28,
"failed_requests": 0
},
"results": [
Expand All @@ -31,7 +31,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2701,
"latency_ms": 1249,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -61,7 +61,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1498,
"latency_ms": 1783,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -95,7 +95,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1712,
"latency_ms": 1839,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -121,7 +121,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1957,
"latency_ms": 1772,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -147,7 +147,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1836,
"latency_ms": 1976,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -173,7 +173,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1807,
"latency_ms": 1572,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -203,7 +203,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1931,
"latency_ms": 1764,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -229,7 +229,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1818,
"latency_ms": 1782,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -259,7 +259,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2003,
"latency_ms": 1883,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -285,7 +285,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 3129,
"latency_ms": 1999,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -315,7 +315,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2463,
"latency_ms": 2010,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -343,7 +343,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1996,
"latency_ms": 1492,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -374,8 +374,8 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2165,
"router": "keywords",
"latency_ms": 1477,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
"filters": true,
Expand All @@ -402,7 +402,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 1672,
"latency_ms": 1625,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -432,7 +432,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 181,
"latency_ms": 2420,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -464,7 +464,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2882,
"latency_ms": 2727,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -491,7 +491,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2162,
"latency_ms": 1777,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -523,7 +523,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 7575,
"latency_ms": 7085,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -553,7 +553,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 3701,
"latency_ms": 16268,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -581,7 +581,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 2894,
"latency_ms": 10319,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -611,7 +611,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 10737,
"latency_ms": 12675,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -643,9 +643,9 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 10217,
"router": "keywords",
"llm_wrote_answer": true,
"latency_ms": 5667,
"router": "llm",
"llm_wrote_answer": false,
"routing": true,
"filters": true,
"answer": true,
Expand All @@ -671,7 +671,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 4217,
"latency_ms": 2374,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -701,7 +701,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 11665,
"latency_ms": 8044,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand All @@ -725,9 +725,9 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 7732,
"latency_ms": 9042,
"router": "llm",
"llm_wrote_answer": true,
"llm_wrote_answer": false,
"routing": true,
"filters": true,
"answer": true,
Expand All @@ -747,23 +747,23 @@
}
},
"got": {
"path": "analytical",
"intent": "custom",
"path": "semantic",
"intent": null,
"filters": {
"region": "Bay of Bengal",
"month_num": 9,
"year": 2026
},
"answered_by": "analytical"
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 4907,
"latency_ms": 193,
"router": "llm",
"llm_wrote_answer": true,
"routing": false,
"routing": true,
"filters": true,
"answer": true,
"note": "routed to analytical/custom"
"note": null
},
{
"id": "follow-region",
Expand All @@ -787,7 +787,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 3397,
"latency_ms": 1843,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -819,7 +819,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 5795,
"latency_ms": 2524,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -849,7 +849,7 @@
"answered_by": "analytical"
},
"status": 200,
"latency_ms": 2489,
"latency_ms": 1783,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down Expand Up @@ -879,7 +879,7 @@
"answered_by": "semantic"
},
"status": 200,
"latency_ms": 13054,
"latency_ms": 3235,
"router": "llm",
"llm_wrote_answer": true,
"routing": true,
Expand Down
14 changes: 7 additions & 7 deletions eval/latest.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## FloatChat evaluation — 29/30 questions fully correct
## FloatChat evaluation — 30/30 questions fully correct

Run against `https://floatchat-ai-svjw.onrender.com` on 2026-11-08 18:16 UTC.
Run against `https://floatchat-ai-svjw.onrender.com` on 2026-11-09 05:16 UTC.

| Metric | Score |
|---|---|
| Routing accuracy (SQL vs search, and which analysis) | 97% |
| Routing accuracy (SQL vs search, and which analysis) | 100% |
| Filter accuracy (region, month, year, sensor) | 100% |
| Answer checks passed | 100% |
| Median latency | 2595 ms |
| Understood by the LLM router | 28/30 |
| Answers written by the LLM | 30/30 |
| Median latency | 1929 ms |
| Understood by the LLM router | 30/30 |
| Answers written by the LLM | 28/30 |

| Case | Question | Routing | Filters | Answer | Notes |
|---|---|---|---|---|---|
Expand Down Expand Up @@ -38,7 +38,7 @@ Run against `https://floatchat-ai-svjw.onrender.com` on 2026-11-08 18:16 UTC.
| `no-data-red-sea` | Describe recent profiles from the Red Sea | ✅ | ✅ | ✅ | |
| `find-nitrate-arabian` | Find nitrate measurements in the Arabian Sea | ✅ | ✅ | ✅ | |
| `find-thermocline` | Show me profiles with a strong thermocline | ✅ | ✅ | ✅ | |
| `find-bengal-september` | Profiles in the Bay of Bengal in September 2026 | ❌ | ✅ | ✅ | routed to analytical/custom |
| `find-bengal-september` | Profiles in the Bay of Bengal in September 2026 | ✅ | ✅ | ✅ | |
| `follow-region` | now only the Bay of Bengal *(follow-up to depth-avg)* | ✅ | ✅ | ✅ | |
| `follow-month` | and just in March *(follow-up to depth-avg-arabian)* | ✅ | ✅ | ✅ | |
| `follow-monthly-arabian` | now for the Arabian Sea *(follow-up to monthly)* | ✅ | ✅ | ✅ | |
Expand Down
Loading
Loading