This commit is contained in:
jyong
2025-06-25 17:32:26 +08:00
parent 540096a8d8
commit efccbe4039
11 changed files with 74 additions and 20 deletions

View File

@ -436,3 +436,6 @@ class DatasourceNode(BaseNode[DatasourceNodeData]):
inputs=parameters_for_log,
)
)
@classmethod
def version(cls) -> str:
return "1"

View File

@ -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"