mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
r2
This commit is contained in:
@ -155,4 +155,5 @@ class KnowledgeIndexNodeData(BaseNodeData):
|
||||
"""
|
||||
|
||||
type: str = "knowledge-index"
|
||||
chunk_structure: str
|
||||
index_chunk_variable_selector: list[str]
|
||||
|
||||
@ -61,7 +61,7 @@ class KnowledgeIndexNode(BaseNode[KnowledgeIndexNodeData]):
|
||||
return NodeRunResult(
|
||||
status=WorkflowNodeExecutionStatus.FAILED, inputs=variables, error="Chunks is required."
|
||||
)
|
||||
outputs = self._get_preview_output(dataset.chunk_structure, chunks)
|
||||
outputs = self._get_preview_output(node_data.chunk_structure, chunks)
|
||||
|
||||
# retrieve knowledge
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user