34 Commits

Author SHA1 Message Date
c6110522c1 fix: root folder upload __root__ → empty string 2026-07-30 18:00:00 +08:00
5b1fb8e564 fix: try/except around DB queries (Agent 2 review) 2026-07-30 17:43:18 +08:00
a440887028 fix: search bind passes {options:{url:...}} to buildUrlwidgetHandler 2026-07-30 17:28:30 +08:00
448645b0e2 fix: delete reloads file_list.dspy instead of delete response 2026-07-30 17:13:58 +08:00
89cb31897b fix: restore col widths + absolute delete URL + _webbricks_=1 2026-07-30 17:04:49 +08:00
5ec01c3b18 fix: restore tree root node (📁 根目录) 2026-07-30 16:55:19 +08:00
8e1ef924e5 fix: download URL /idfile prefix, delete uses fetch, filename left-aligned 2026-07-30 16:17:20 +08:00
40cf8f3291 fix: int(total_size) + json.dumps default=str (Agent 2 review) 2026-07-30 16:02:53 +08:00
eaa8d37816 fix: storage stats use int for doc/chunk counts 2026-07-30 15:48:58 +08:00
f968f9f578 feat: dynamic storage stats display via storage_stats.dspy 2026-07-30 15:45:07 +08:00
Hermes
f63f742f8e fix: restore del_url line in file_list.dspy 2026-07-30 15:06:20 +08:00
Hermes
c1a8f1643a fix: download URL uses file_path directly (/idfile/{id}.{ext}) 2026-07-30 14:49:19 +08:00
Hermes
908480f35e fix: file_url uses file_path directly with /idfile prefix 2026-07-30 14:24:49 +08:00
Hermes
eed6da7667 fix: file download/view URL uses /idfile/{doc_id}.{ext} 2026-07-30 14:20:22 +08:00
Hermes
f06063c0b5 fix: search page — use script bind to avoid datawidget crash 2026-07-30 13:55:06 +08:00
Hermes
a481130810 feat: search page + KB selector + file upload, pipeline module 2026-07-30 13:53:17 +08:00
bd66e00a7a fix: use env.save_file/realpath instead of importing FileStorage in DSPY 2026-07-30 10:38:06 +08:00
3f3743842e fix: use FileStorage for upload/delete — hashed paths /idfile/191/193/197/97/xxx.txt 2026-07-29 18:15:06 +08:00
c14588f33b fix: file list truncation+tooltip, fixed column widths, view/download/delete fix 2026-07-29 17:14:38 +08:00
0385670e38 fix: restore detail.ui with upload zone + upload_file.dspy 2026-07-29 16:59:58 +08:00
224496ae0e fix: file_list alignment + view/download/delete actions
- Filename: add textAlign left + cwidth columns for type/size/status/date
- View: newwindow → window.open(_blank)
- Download: urlwidget PopupWindow → script anchor download
- Delete: hardcoded path → relative path, refresh with widget list
2026-07-29 16:41:39 +08:00
Hermes
ac75d75ec4 fix: detail.ui restore tree + file_list.dspy with node_selected bind 2026-07-28 15:07:07 +08:00
c2f0d4e8a7 fix: detail.ui sidebar overflow hidden — prevent tree nodes from expanding menu width 2026-07-27 18:51:19 +08:00
850e96e0ea feat: uapi-based unified search with text+media, multi-KB, rerank
- search_handler: query(opt) + media(opt) → embed → VDB search → rerank → enriched
- _resolve_search_kbs: specific KB or all org KBs
- _build_search_vector: text + image/audio/video/text file → CLIP embedding
- _parse_vdb_hits/_apply_rerank/_enrich_search_results: result pipeline
2026-07-27 14:08:47 +08:00
f494eaa686 feat: uapi-based RAG ingest pipeline + improved delete cleanup
- _rag_ingest_async(): chunk → embed(VDB) → VDB upsert → NER → graph save → DB records
- _split_text(): paragraph-based text chunker
- doc_upload_handler: replace pipeline.ingest with _rag_ingest_async
- doc_delete_handler: use uapi vdb-delete + graph-delete (was broken graph/save)
2026-07-27 13:49:41 +08:00
50b2e35e7b feat: replace hardcoded VDB/Graph calls with uapi-based async functions
- Add _call_uapi() for unified GPU service calling via uapi config
- Add _call_vdb_async() / _call_graph_async() async wrappers
- Update doc_delete_handler to use async versions
- Keep sync wrappers for backward compat
2026-07-27 12:10:28 +08:00
fbba95e683 fix: /rag/ prefix in all module URLs 2026-07-24 14:34:36 +08:00
0712856f09 add pyproject.toml 2026-07-24 13:48:13 +08:00
e2c70c23c1 clean: remove conf directory 2026-07-24 13:45:39 +08:00
5664508234 fix: wwwroot/json/models/conf at repo root (Sage module convention) 2026-07-24 13:39:39 +08:00
8bef57b89e fix: move code into rag/ subpackage for find_packages() 2026-07-24 13:36:54 +08:00
796df405b4 fix: move CRUD json to json/, keep models/ for DB defs 2026-07-24 13:35:13 +08:00
93fa95ea69 fix: rename init_ragserver → init_rag_module 2026-07-24 13:26:57 +08:00
84f3d6e284 init: RAG business module 2026-07-24 13:24:20 +08:00