merlyn/server
Timothy Carambat 0fb33736da
Workspace Chat with documents overhaul (#4261)
* Create parse endpoint in collector (#4212)

* create parse endpoint in collector

* revert cleanup temp util call

* lint

* remove unused cleanupTempDocuments function

* revert slug change
minor change for destinations

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>

* Add parsed files table and parse server endpoints (#4222)

* add workspace_parsed_files table + parse endpoints/models

* remove dev api parse endpoint

* remove unneeded imports

* iterate over all files + remove unneeded update function + update telemetry debounce

* Upload UI/UX context window check + frontend alert (#4230)

* prompt user to embed if exceeds prompt window + handle embed + handle cancel

* add tokenCountEstimate to workspace_parsed_files + optimizations

* use util for path locations + use safeJsonParse

* add modal for user decision on overflow of context window

* lint

* dynamic fetching of provider/model combo + inject parsed documents

* remove unneeded comments

* popup ui for attaching/removing files + warning to embed + wip fetching states on update

* remove prop drilling, fetch files/limits directly in attach files popup

* rework ux of FE + BE optimizations

* fix ux of FE + BE optimizations

* Implement bidirectional sync for parsed file states
linting
small changes and comments

* move parse support to another endpoint file
simplify calls and loading of records

* button borders

* enable default users to upload parsed files but NOT embed

* delete cascade on user/workspace/thread deletion to remove parsedFileRecord

* enable bgworker with "always" jobs and optional document sync jobs
orphan document job: Will find any broken reference files to prevent overpollution of the storage folder. This will run 10s after boot and every 12hr after

* change run timeout for orphan job to 1m to allow settling before spawning a worker

* linting and cleanup pr

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>

* dev build

* fix tooltip hiding during embedding overflow files

* prevent crash log from ERRNO on parse files

* unused import

* update docs link

* Migrate parsed-files to GET endpoint
patch logic for grabbing models names from utils
better handling for undetermined context windows (null instead of Pos_INIFI)
UI placeholder for null context windows

* patch URL

---------

Co-authored-by: Sean Hatfield <seanhatfield5@gmail.com>
2025-08-11 09:26:19 -07:00
..
__tests__/utils Update check for validFuncCall to only check required args and for undefined options (#4214) 2025-07-30 11:59:23 -07:00
endpoints Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
jobs Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
models Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
prisma Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
storage Native Embedder model selection (incl: Multilingual support) (#3835) 2025-07-22 10:07:20 -07:00
swagger Allow custom headers in upload-link endpoint (#3695) 2025-04-22 12:47:12 -07:00
utils Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
.env.example Add custom JWT TTL (#4234) 2025-08-01 10:39:38 -07:00
.flowconfig devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
.gitignore Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
.nvmrc Implement Chroma Support (#1) 2023-06-07 21:31:35 -07:00
index.js Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00
jsconfig.json devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
nodemon.json Full developer api (#221) 2023-08-23 19:15:07 -07:00
package.json Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00
yarn.lock Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00