File tree Expand file tree Collapse file tree 6 files changed +10
-5
lines changed
Expand file tree Collapse file tree 6 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 5757 - name : Run pipeline, create pipeline, configure trigger (Production)
5858 working-directory : ./llm-complete-guide
5959 run : |
60- python gh_action_rag.py --no-cache --create-template --event-source-id --service-account-id ${{ env.ZENML_SERVICE_ACCOUNT_ID }} --action- id ${{ env.ZENML_ACTION_ID }} --config production/rag.yaml --zenml-model-version production
60+ python gh_action_rag.py --no-cache --create-template --event-source-id ${{ env.ZENML_EVENT_SOURCE_ID }} --service-account- id ${{ env.ZENML_SERVICE_ACCOUNT_ID }} --config production/rag.yaml --zenml-model-version production
Original file line number Diff line number Diff line change 1- 0.68.1
1+ 0.66.0
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ settings:
1515 - ratelimit
1616 - rerankers
1717 - pygithub
18+ - rerankers[flashrank]
1819 environment :
1920 ZENML_PROJECT_SECRET_NAME : llm_complete
2021 ZENML_ENABLE_RICH_TRACEBACK : FALSE
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ settings:
1515 - ratelimit
1616 - rerankers
1717 - pygithub
18+ - rerankers[flashrank]
1819 environment :
1920 ZENML_PROJECT_SECRET_NAME : llm_complete
2021 ZENML_ENABLE_RICH_TRACEBACK : FALSE
Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ settings:
1515 - ratelimit
1616 - rerankers
1717 - pygithub
18+ - rerankers[flashrank]
1819 environment :
1920 ZENML_PROJECT_SECRET_NAME : llm_complete
2021 ZENML_ENABLE_RICH_TRACEBACK : FALSE
2122 ZENML_LOGGING_VERBOSITY : INFO
2223 python_package_installer : " uv"
2324 parent_image : " 339712793861.dkr.ecr.eu-central-1.amazonaws.com/zenml:llm_index_and_evaluate-orchestrator"
2425 skip_build : true
26+
2527steps :
2628 url_scraper :
2729 parameters :
Original file line number Diff line number Diff line change @@ -96,12 +96,13 @@ def main(
9696 no_cache (bool): If `True`, cache will be disabled.
9797 config (str): The path to the configuration file.
9898 create_template (bool): If `True`, a run template will be created.
99- action_id (str): The action ID.
10099 service_account_id (str): The service account ID.
101100 event_source_id (str): The event source ID.
102101 zenml_model_name (str): The ZenML model name.
103102 zenml_model_version (str): The ZenML model version.
104103 """
104+ pipeline_args = {"enable_cache" : not no_cache }
105+
105106 client = Client ()
106107 config_path = Path (__file__ ).parent / "configs" / config
107108
@@ -139,7 +140,7 @@ def main(
139140 )
140141
141142 if create_template :
142- # run pipeline
143+ # Run pipeline
143144 run = llm_index_and_evaluate .with_options (
144145 model = zenml_model ,
145146 config_path = str (config_path ),
@@ -157,7 +158,7 @@ def main(
157158 name_id_or_prefix = "LLM Complete (production)" ,
158159 allow_name_prefix_match = True ,
159160 )
160- except ZenKeyError :
161+ except KeyError :
161162 if not event_source_id :
162163 raise RuntimeError (
163164 "An event source is required for this workflow."
You can’t perform that action at this time.
0 commit comments