-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Problem Statement
Currently, the SingleTaskLearning algorithm in ianvs lacks an initialization/preprocessing step before _train() is called. This can be problematic in scenarios like RAG (Retrieval-Augmented Generation), where a knowledge base must be initialized before training or inference begins.
For reference, the current _train() implementation starts directly without any preprocessing:
https://github.com/kubeedge/ianvs/blob/main/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning.py#L58
Proposed Solution
Introduce a _preprocess() method in the SingleTaskLearning paradigm, which will be called before _train() or _inference(). This method should:
- Handle initialization tasks (e.g., loading a RAG knowledge base, data preprocessing, etc.).
- Be optional—if not implemented by a subclass, it should silently skip without affecting existing workflows.
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.