6 Commits

Author SHA1 Message Date
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
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