mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
r2
This commit is contained in:
@ -436,3 +436,6 @@ class DatasourceNode(BaseNode[DatasourceNodeData]):
|
||||
inputs=parameters_for_log,
|
||||
)
|
||||
)
|
||||
@classmethod
|
||||
def version(cls) -> str:
|
||||
return "1"
|
||||
|
||||
@ -159,3 +159,7 @@ class KnowledgeIndexNode(BaseNode[KnowledgeIndexNodeData]):
|
||||
def _get_preview_output(self, chunk_structure: str, chunks: Mapping[str, Any]) -> Mapping[str, Any]:
|
||||
index_processor = IndexProcessorFactory(chunk_structure).init_index_processor()
|
||||
return index_processor.format_preview(chunks)
|
||||
|
||||
@classmethod
|
||||
def version(cls) -> str:
|
||||
return "1"
|
||||
|
||||
Reference in New Issue
Block a user