diff --git a/kag/examples/baike/schema/index.schema b/kag/examples/baike/schema/index.schema index 92ae28963..21f1c86cb 100644 --- a/kag/examples/baike/schema/index.schema +++ b/kag/examples/baike/schema/index.schema @@ -19,7 +19,7 @@ Summary(摘要): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级摘要): Summary KnowledgeUnit(知识点): IndexType @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType title(标题): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk similar(相似问题): AtomicQuery relatedTo(相关): KnowledgeUnit @@ -58,7 +58,7 @@ Diagram(图表): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk contain(包含): Cell Outline(大纲): IndexType @@ -68,5 +68,5 @@ Outline(大纲): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级大纲): Outline \ No newline at end of file diff --git a/kag/indexer/kag_index_manager.py b/kag/indexer/kag_index_manager.py index f2c12b4d1..daae7129a 100644 --- a/kag/indexer/kag_index_manager.py +++ b/kag/indexer/kag_index_manager.py @@ -93,8 +93,12 @@ def schema(self) -> str: return """ AtomicQuery(原子问): IndexType properties: - content(内容): Text + title(标题): Text index: TextAndVector + relations: + sourceChunk(关联文本块): Chunk + similar(相似问题): AtomicQuery + relatedTo(相关): KnowledgeUnit """ @property @@ -548,7 +552,7 @@ def schema(self) -> str: title(标题): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk similar(相似问题): AtomicQuery relatedTo(相关): KnowledgeUnit """ diff --git a/kag/open_benchmark/2wiki/schema/index.schema b/kag/open_benchmark/2wiki/schema/index.schema index 44c513ac3..2bf2f7394 100644 --- a/kag/open_benchmark/2wiki/schema/index.schema +++ b/kag/open_benchmark/2wiki/schema/index.schema @@ -19,7 +19,7 @@ Summary(摘要): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级摘要): Summary KnowledgeUnit(知识点): IndexType @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType title(标题): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk similar(相似问题): AtomicQuery relatedTo(相关): KnowledgeUnit @@ -58,7 +58,7 @@ Diagram(图表): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk contain(包含): Cell Outline(大纲): IndexType @@ -68,5 +68,5 @@ Outline(大纲): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级大纲): Outline \ No newline at end of file diff --git a/kag/open_benchmark/hotpotqa/schema/index.schema b/kag/open_benchmark/hotpotqa/schema/index.schema index 7c0f7e8f8..b92e43f5d 100644 --- a/kag/open_benchmark/hotpotqa/schema/index.schema +++ b/kag/open_benchmark/hotpotqa/schema/index.schema @@ -19,7 +19,7 @@ Summary(摘要): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级摘要): Summary KnowledgeUnit(知识点): IndexType @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType title(标题): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk similar(相似问题): AtomicQuery relatedTo(相关): KnowledgeUnit @@ -58,7 +58,7 @@ Diagram(图表): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk contain(包含): Cell Outline(大纲): IndexType @@ -68,5 +68,5 @@ Outline(大纲): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级大纲): Outline \ No newline at end of file diff --git a/kag/open_benchmark/musique/schema/index.schema b/kag/open_benchmark/musique/schema/index.schema index 765cb03f0..026cdba10 100644 --- a/kag/open_benchmark/musique/schema/index.schema +++ b/kag/open_benchmark/musique/schema/index.schema @@ -19,7 +19,7 @@ Summary(摘要): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级摘要): Summary KnowledgeUnit(知识点): IndexType @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType title(标题): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk similar(相似问题): AtomicQuery relatedTo(相关): KnowledgeUnit @@ -58,7 +58,7 @@ Diagram(图表): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk contain(包含): Cell Outline(大纲): IndexType @@ -68,5 +68,5 @@ Outline(大纲): IndexType content(内容): Text index: TextAndVector relations: - relateTo(关联文本块): Chunk + sourceChunk(关联文本块): Chunk childOf(上级大纲): Outline \ No newline at end of file