Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions kag/examples/baike/schema/index.schema
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Summary(摘要): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级摘要): Summary

KnowledgeUnit(知识点): IndexType
Expand All @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType
title(标题): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
similar(相似问题): AtomicQuery
relatedTo(相关): KnowledgeUnit

Expand All @@ -58,7 +58,7 @@ Diagram(图表): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
contain(包含): Cell

Outline(大纲): IndexType
Expand All @@ -68,5 +68,5 @@ Outline(大纲): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级大纲): Outline
8 changes: 6 additions & 2 deletions kag/indexer/kag_index_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -548,7 +552,7 @@ def schema(self) -> str:
title(标题): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
similar(相似问题): AtomicQuery
relatedTo(相关): KnowledgeUnit
"""
Expand Down
8 changes: 4 additions & 4 deletions kag/open_benchmark/2wiki/schema/index.schema
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Summary(摘要): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级摘要): Summary

KnowledgeUnit(知识点): IndexType
Expand All @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType
title(标题): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
similar(相似问题): AtomicQuery
relatedTo(相关): KnowledgeUnit

Expand All @@ -58,7 +58,7 @@ Diagram(图表): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
contain(包含): Cell

Outline(大纲): IndexType
Expand All @@ -68,5 +68,5 @@ Outline(大纲): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级大纲): Outline
8 changes: 4 additions & 4 deletions kag/open_benchmark/hotpotqa/schema/index.schema
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Summary(摘要): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级摘要): Summary

KnowledgeUnit(知识点): IndexType
Expand All @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType
title(标题): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
similar(相似问题): AtomicQuery
relatedTo(相关): KnowledgeUnit

Expand All @@ -58,7 +58,7 @@ Diagram(图表): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
contain(包含): Cell

Outline(大纲): IndexType
Expand All @@ -68,5 +68,5 @@ Outline(大纲): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级大纲): Outline
8 changes: 4 additions & 4 deletions kag/open_benchmark/musique/schema/index.schema
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Summary(摘要): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级摘要): Summary

KnowledgeUnit(知识点): IndexType
Expand All @@ -40,7 +40,7 @@ AtomicQuery(原子问): IndexType
title(标题): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
similar(相似问题): AtomicQuery
relatedTo(相关): KnowledgeUnit

Expand All @@ -58,7 +58,7 @@ Diagram(图表): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
contain(包含): Cell

Outline(大纲): IndexType
Expand All @@ -68,5 +68,5 @@ Outline(大纲): IndexType
content(内容): Text
index: TextAndVector
relations:
relateTo(关联文本块): Chunk
sourceChunk(关联文本块): Chunk
childOf(上级大纲): Outline
Loading