Skip to content

Fix broken code explanation and slash explain daily run config

Tan Le requested to merge fix-code-explanation-slash-commands-config into main

What does this merge request do and why?

We do not yet support multiple outputs of the same type, e.g. 2 BigQuery table. The generated Apache Beam step names are not unique.

We can observe this bug in the scheduled pipeline (example) or by running the following command locally.

poetry run promptlib duo-chat eval --config-file data/config/scheduled_runs/duo_chat/code_explanation_and_slash_commands.json --dry-run
--snip
RuntimeError: A transform with label "[independent_llm_judge] Write results to BigQuery" already exists in the pipeline. To apply a transform with a specified label write pvalue | "label" >> transform

This MR consolidates the BigQuery output to only one table and adds missing URL config for slash command model.

How to set up and validate locally

  1. Ensure GCP environment variables are setup.
  2. Check out to this merge request's branch.
  3. Run the follow command to verify there is no longer any error.
    poetry run promptlib duo-chat eval --config-file data/config/scheduled_runs/duo_chat/code_explanation_and_slash_commands.json --dry-run

Merge request checklist

  • I've ran the affected pipeline(s) to validate that nothing is broken.
  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
Edited by Tan Le

Merge request reports

Loading