feat: upgrade cold knowledge storage to TriviumDB 0.8.5 and harden flush lifecycle - #463
Merged
Merged
Conversation
…ush lifecycle - Upgrade triviumdb to 0.8.5 in package.json - Add queue drain flush in _runQueueWorker to ensure .tdb files persist immediately upon ingest - Harden library lifecycle: trigger buildTextIndex, compact, and flush before library close - Integrate TriviumDB 0.8.5 compact() for WAL and memory defragmentation - Pass payload_filter to searchHybrid for native pre-filtering - Register document and chunk titles via AC automaton indexKeyword - Expose subgraph, queryTql, and compactLibrary on TDBKnowledgeManager - Add integration test suite tests/tdbKnowledge085.test.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 (Overview)
本 PR 将冷知识库向量存储引擎升级至 TriviumDB 0.8.5,并对存储生命周期与落盘(Flush)机制进行了全面加固。
主要更新与加固点 (Key Changes & Hardening)
依赖升级:
解决文件入库后的落盘延迟(Queue Drain Flush):
生命周期与安全关闭加固:
TriviumDB 0.8.5 旗舰特性集成:
全量自动化测试套件: