FunctionChainStage
A FunctionChainStage instance is one execution stage where a function chain can run.
VALUES:
-
UNSPECIFIEDThe stage is not specified.
-
INGESTIONThe chain runs during data ingestion.
-
PRE_PROCESSThe chain runs before the main query or search process.
-
L0_RERANKThe chain runs at the first reranking stage.
-
L1_RERANKThe chain runs at the second reranking stage.
-
L2_RERANKThe chain runs at the third reranking stage.
-
POST_PROCESSThe chain runs after the main query or search process.
Examples
python
from pymilvus import FunctionChain, FunctionChainStage
chain = FunctionChain(
FunctionChainStage.L2_RERANK,
name="rerank",
)