Skip to content
Closed
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2c0f331
Feat: @tool decorator for chat-model tool registration
KevinHuSh May 20, 2026
b692dd7
Fix: rename async timeout kwarg to satisfy ruff ASYNC109
KevinHuSh May 20, 2026
f780a4a
Refactor timeout.
KevinHuSh May 21, 2026
a144c8f
Feat: add compile_structure_from_text for list/set/hypergraph extraction
KevinHuSh May 26, 2026
56d4a5f
Feat: add merge_compiled_structures and relocate compilation into rag…
KevinHuSh May 27, 2026
6dd6ea7
Field name align with graphrag.
KevinHuSh May 27, 2026
b60b004
Make the extractor in pipleline support KC
KevinHuSh May 27, 2026
48a947b
Merge branch 'main' into feat/compile-structure-from-text
KevinHuSh May 29, 2026
e0fda5f
Refactor: move compile_structure_from_text and merge_compiled_structu…
KevinHuSh Jun 3, 2026
9a4e6ff
Merge branch 'main' of https://github.com/KevinHuSh/ragflow into feat…
KevinHuSh Jun 3, 2026
7f3c857
Add wiki generation
KevinHuSh Jun 3, 2026
20196f2
Continue...
KevinHuSh Jun 4, 2026
e1b0b12
Continue...
KevinHuSh Jun 4, 2026
8c0871b
Trival
KevinHuSh Jun 4, 2026
772d4fa
Trival.
KevinHuSh Jun 4, 2026
69d2110
Merge branch 'main' into feat/compile-structure-from-text
KevinHuSh Jun 4, 2026
ed3dfc1
Debugging...
KevinHuSh Jun 4, 2026
1aa3cee
Refactor: extract shared engines into _common, rename wiki -> artifact
KevinHuSh Jun 5, 2026
246dbde
Refine prompt.
KevinHuSh Jun 8, 2026
6295240
feat: knowledge compilation templates with doc-scope structure and da…
KevinHuSh Jun 12, 2026
f9e6da6
Refine RAPTOR
KevinHuSh Jun 15, 2026
660dd73
Continue...
KevinHuSh Jun 16, 2026
eba910f
Coordinate post-chunking finalizers per document
KevinHuSh Jun 16, 2026
7a34a43
Preserve source chunk ids in graph projections
KevinHuSh Jun 16, 2026
78b6942
Add document structure graph deletion
KevinHuSh Jun 16, 2026
eef00aa
source_id -> source_chunk_ids
KevinHuSh Jun 16, 2026
6df770e
Continue...
KevinHuSh Jun 16, 2026
85d2d7d
Continue...
KevinHuSh Jun 17, 2026
e8aa5c6
Merge branch 'main' into feat/merge_structure_with_wiki
KevinHuSh Jun 17, 2026
7f07523
Add artifact page editing history
KevinHuSh Jun 18, 2026
989696f
Add timeline structure graph support
KevinHuSh Jun 18, 2026
7e516fe
Add incremental artifact compilation cache
KevinHuSh Jun 22, 2026
18e7daa
Refine RAPTOR tree materialization
KevinHuSh Jun 23, 2026
d4b2854
Support optional RAPTOR tree output
KevinHuSh Jun 24, 2026
0807fd9
Add dataset skills generation and browser
KevinHuSh Jun 24, 2026
a238ffe
Hide compilation template kinds in UI
KevinHuSh Jun 25, 2026
c53f422
Trival...
KevinHuSh Jun 25, 2026
568c824
Trival
KevinHuSh Jun 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/db/services/dialog_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ async def callback(msg: str):
retrieval_ts = timer()
if not knowledges and prompt_config.get("empty_response"):
empty_res = prompt_config["empty_response"]
yield {"answer": empty_res, "reference": {}, "prompt": "", "audio_binary": None, "final": False}
yield {"answer": empty_res, "reference": kbinfos, "prompt": "\n\n### Query:\n%s" % " ".join(questions), "audio_binary": tts(tts_mdl, empty_res), "final": True}
return

Expand Down
43 changes: 43 additions & 0 deletions rag/advanced_rag/knowlege_compile/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .structure import compile_structure_from_text, merge_compiled_structures
from .artifact import (
ARTIFACT_DRAFT_COMPILE_KWD,
ARTIFACT_MAP_COMPILE_KWD,
ARTIFACT_PAGE_COMPILE_KWD,
ARTIFACT_PLAN_COMPILE_KWD,
ARTIFACT_REDUCE_COMPILE_KWD,
artifact_map_from_chunks,
artifact_plan_from_reduction,
artifact_reduce_from_extracts,
artifact_refine_from_plan,
)


__all__ = [
"compile_structure_from_text",
"merge_compiled_structures",
"artifact_map_from_chunks",
"artifact_reduce_from_extracts",
"artifact_plan_from_reduction",
"artifact_refine_from_plan",
"ARTIFACT_MAP_COMPILE_KWD",
"ARTIFACT_REDUCE_COMPILE_KWD",
"ARTIFACT_PLAN_COMPILE_KWD",
"ARTIFACT_PAGE_COMPILE_KWD",
"ARTIFACT_DRAFT_COMPILE_KWD",
]
Loading