File tree Expand file tree Collapse file tree 4 files changed +419
-134
lines changed Expand file tree Collapse file tree 4 files changed +419
-134
lines changed Original file line number Diff line number Diff line change 1- 0.74 .0
1+ 0.75 .0
Original file line number Diff line number Diff line change 1717from typing import Optional
1818
1919import click
20- from steps .create_prompt import create_prompt
20+ from steps .create_prompt import PROMPT , create_prompt
2121from steps .eval_e2e import e2e_evaluation , e2e_evaluation_llm_judged
2222from steps .eval_retrieval import (
2323 retrieval_evaluation_full ,
2626 retrieval_evaluation_small_with_reranking ,
2727)
2828from steps .eval_visualisation import visualize_evaluation_results
29- from zenml import pipeline
29+ from zenml import pipeline , save_artifact
3030
3131
3232@pipeline (enable_cache = True )
3333def llm_eval (after : Optional [str ] = None ) -> None :
3434 """Executes the pipeline to evaluate a RAG pipeline."""
3535 # define prompt
36- prompt = create_prompt ( )
36+ prompt = save_artifact ( PROMPT , "prompt" )
3737
3838 # Retrieval evals
3939 failure_rate_retrieval = retrieval_evaluation_small (after = after )
Original file line number Diff line number Diff line change 1616
1717from zenml import log_metadata , step
1818
19+ PROMPT = """
20+ You are a friendly chatbot. \
21+ You can answer questions about ZenML, its features and its use cases. \
22+ You respond in a concise, technically credible tone. \
23+ You ONLY use the context from the ZenML documentation to provide relevant
24+ answers. \
25+ """
1926
2027@step
2128def create_prompt () -> str :
You can’t perform that action at this time.
0 commit comments