File tree Expand file tree Collapse file tree 4 files changed +426
-0
lines changed
Expand file tree Collapse file tree 4 files changed +426
-0
lines changed Original file line number Diff line number Diff line change 2020from pipelines .llm_basic_rag import llm_basic_rag
2121from pipelines .llm_eval import llm_eval
2222from pipelines .llm_index_and_evaluate import llm_index_and_evaluate
23+ from pipelines .llm_langfuse_evals import llm_langfuse_evaluation
2324from pipelines .rag_deployment import rag_deployment
Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
3+ from steps .eval_langfuse import fast_eval , visualize_fast_eval_results
4+ from zenml import pipeline
5+
6+
7+ @pipeline (enable_cache = False )
8+ def llm_langfuse_evaluation (after : Optional [str ] = None ) -> None :
9+ results = fast_eval (after = after )
10+ visualize_fast_eval_results (results )
11+
12+
13+ if __name__ == "__main__" :
14+ llm_langfuse_evaluation ()
Original file line number Diff line number Diff line change 4848 llm_basic_rag ,
4949 llm_eval ,
5050 llm_index_and_evaluate ,
51+ llm_langfuse_evaluation ,
5152 rag_deployment ,
5253)
5354from structures import Document
7677 "embeddings" ,
7778 "chunks" ,
7879 "basic_rag" ,
80+ "langfuse_evaluation" ,
7981 ]
8082 ),
8183 required = True ,
@@ -268,6 +270,10 @@ def main(
268270 pipeline_args ["enable_cache" ] = False
269271 llm_eval .with_options (model = zenml_model , config_path = config_path )()
270272
273+ elif pipeline == "langfuse_evaluation" :
274+ pipeline_args ["enable_cache" ] = False
275+ llm_langfuse_evaluation .with_options (model = zenml_model )()
276+
271277 elif pipeline == "synthetic" :
272278 generate_synthetic_data .with_options (
273279 model = zenml_model , config_path = config_path , ** pipeline_args
You can’t perform that action at this time.
0 commit comments