Commit Graph

53 Commits

Author SHA1 Message Date
Avraham Sakal 88adc15899 consolidate openrouter instance creation 2025-09-28 13:23:07 -04:00
Avraham Sakal a76ec7ae1d fix: immutable optimistic update to trigger re-render 2025-09-21 22:36:30 -04:00
Avraham Sakal 67841355ac fix: "enter" updates conversation title 2025-09-21 20:40:58 -04:00
Avraham Sakal 542b6e45c3 fix: type error 2025-09-21 20:21:30 -04:00
Avraham Sakal 0207e4fc47 authz/authn on all trpc procedures 2025-09-21 19:12:15 -04:00
Avraham Sakal 360bfc6df3 drop db interface, use kysely instead for more more flexibility (at the cost of more coupling) 2025-09-21 17:14:27 -04:00
Avraham Sakal 51b14c8b2b fix: build errors (couldn't find package) 2025-09-21 14:33:36 -04:00
Avraham Sakal f8c8c4906a fix: type errors 2025-09-21 14:23:59 -04:00
Avraham Sakal d32515a75f re-organize files 2025-09-21 12:13:18 -04:00
Avraham Sakal 61540f9338 basic user-tailored UI 2025-09-18 10:45:00 -04:00
Avraham Sakal 6d80d3a9a6 variable-length TextInput for conversation title 2025-09-16 09:21:36 -04:00
Avraham Sakal db6057431a oops. forgot to use openrouter from the ctx 2025-09-16 09:14:48 -04:00
Avraham Sakal 81338b8831 use environment variables from cloudflare's environment 2025-09-16 09:09:33 -04:00
Avraham Sakal cac6bf142c scrollable message list with sticky conversation header 2025-09-14 21:47:44 -04:00
Avraham Sakal 6668361f05 UI overhaul: fonts, colors, scrollable message boxes, animated text generation status updates 2025-09-14 16:17:01 -04:00
Avraham Sakal ebfbb22525 streaming response 2025-09-14 13:36:43 -04:00
Avraham Sakal fef408d399 just use nemo, it's great 2025-09-01 21:05:22 -04:00
Avraham Sakal b20c48ce0a deletable messages 2025-09-01 21:04:57 -04:00
Avraham Sakal 84eaab08ea expand use of react-query for state management 2025-08-31 15:07:01 -04:00
Avraham Sakal f4e9c62e96 transition to postgresql for persistence layer 2025-08-31 12:04:18 -04:00
Avraham Sakal afee7dd8c9 abstract application-to-database interface 2025-08-29 16:17:20 -04:00
Avraham Sakal 18411402f5 example of SSE streaming 2025-08-26 19:01:39 -04:00
Avraham Sakal 2d35a4683b begin migration to trpc/react-query integration 2025-08-17 19:32:24 -04:00
Avraham Sakal cb749072f2 fix: object generation errors; easily-switchable model 2025-08-15 17:01:34 -04:00
Avraham Sakal 341cf5bff1 upgrade ai sdk to v5 2025-08-15 16:27:25 -04:00
Avraham Sakal d44215841e editable fact triggers in the UI 2025-08-08 17:46:29 -04:00
Avraham Sakal df1e263ef7 editable facts in the UI 2025-08-08 17:43:03 -04:00
Avraham Sakal 46595649df add "Fact Triggers" tab in UI 2025-08-08 17:24:31 -04:00
Avraham Sakal 2cea5500c8 lint 2025-08-08 17:07:07 -04:00
Avraham Sakal a8eba580d0 biome format 2025-08-08 17:02:53 -04:00
Avraham Sakal 5e5549e85f factored-out generateFromFact into fact-triggers module 2025-08-08 17:02:09 -04:00
Avraham Sakal 41e94feef6 factored-out generateRunningSummary into messages module 2025-08-08 16:54:01 -04:00
Avraham Sakal 84e9ff8bd2 factored-out fact generation into facts module 2025-07-31 09:15:32 -04:00
Avraham Sakal c2815b4d83 generate fact triggers on each turn 2025-07-28 22:15:59 -04:00
Avraham Sakal 55d35e150c slight refactor of delete-by-id implementation 2025-07-28 22:15:40 -04:00
Avraham Sakal 5c8620ef5e use message.id as React key 2025-07-28 21:34:18 -04:00
Avraham Sakal 5d443ef1b1 improve clarity of generated facts by using proper pronouns to refer to the user 2025-07-28 21:23:40 -04:00
Avraham Sakal bf0bfe5b07 improve prompt quality 2025-07-27 18:25:40 -04:00
Avraham Sakal c69e4de738 cleaner UI 2025-07-27 18:25:24 -04:00
Avraham Sakal 91e38521aa buttons on hover over message 2025-07-27 17:40:23 -04:00
Avraham Sakal 3b84e01057 refactor trpc procedures into domains 2025-07-27 17:22:58 -04:00
Avraham Sakal 25523559aa fetch facts on load, facts are deletable 2025-07-27 16:56:44 -04:00
Avraham Sakal caf36cf67b each generation/completion uses one system prompt and one user prompt for maximum clarity for the model 2025-07-27 13:36:01 -04:00
Avraham Sakal ee9e9424ab generate and save facts 2025-07-27 10:53:25 -04:00
Avraham Sakal 01d2997f77 use lowdb for faster iteration; use strings for ids and camelCase for field names for consistency 2025-07-27 09:46:34 -04:00
Avraham Sakal 1f80ad4ba9 factored-out system prompts into their own functions 2025-07-22 08:03:15 -04:00
Avraham Sakal 5cfc70632e display the runningSummary as markdown as well 2025-07-21 20:42:09 -04:00
Avraham Sakal 3ba60b999c generate runningSummary on each turn, and include it with the main completion 2025-07-21 20:38:42 -04:00
Avraham Sakal de26fc5eb5 improve ui consistency with immer; implement addConversation 2025-07-14 07:51:24 -04:00
Avraham Sakal 7a9f0c956c setup postgres and kyseley for most data instead of milvus 2025-07-13 20:14:53 -04:00