Skip to content

Commit

Permalink
update register name
Browse files Browse the repository at this point in the history
  • Loading branch information
caszkgui committed Dec 27, 2024
1 parent 26fdbc0 commit 192f213
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
logger = logging.getLogger(__name__)


@ExtractorABC.register("schema_constraint")
@ExtractorABC.register("schema_constraint_extractor")
class SchemaConstraintExtractor(ExtractorABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/postprocessor/kag_postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
logger = logging.getLogger()


@PostProcessorABC.register("base", as_default=True)
@PostProcessorABC.register("kag_post_processor", as_default=True)
class KAGPostProcessor(PostProcessorABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/reader/txt_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from knext.common.base.runnable import Input, Output


@ReaderABC.register("txt")
@ReaderABC.register("txt_reader")
class TXTReader(ReaderABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/scanner/directory_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from knext.common.base.runnable import Input, Output


@ScannerABC.register("dir")
@ScannerABC.register("dir_file_scanner")
class DirectoryScanner(ScannerABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/splitter/length_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from kag.builder.component.splitter.base_table_splitter import BaseTableSplitter


@SplitterABC.register("length")
@SplitterABC.register("length_splitter")
class LengthSplitter(BaseTableSplitter):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/vectorizer/batch_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def batch_generate(self, node_batch, batch_size=32):
manager.patch()


@VectorizerABC.register("batch")
@VectorizerABC.register("batch_vectorizer")
class BatchVectorizer(VectorizerABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/component/writer/kg_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class AlterOperationEnum(str, Enum):
Delete = "DELETE"


@SinkWriterABC.register("kg", as_default=True)
@SinkWriterABC.register("kg_writer", as_default=True)
class KGWriter(SinkWriterABC):
"""
Expand Down
1 change: 1 addition & 0 deletions kag/builder/default_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def build(self, **kwargs):
# node.checkpointer.close()


@KAGBuilderChain.register("unstructured")
@KAGBuilderChain.register("unstructured_builder_chain")
class DefaultUnstructuredBuilderChain(KAGBuilderChain):
"""
Expand Down

0 comments on commit 192f213

Please sign in to comment.