Skip to content

Commit

Permalink
fix: change gleaning prompt to validation_prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Oct 13, 2024
1 parent 0aeb643 commit 652efad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docetl/operations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,9 @@ def _cached_call_llm(
if gleaning_config:
# Retry gleaning prompt + regular LLM
num_gleaning_rounds = gleaning_config.get("num_rounds", 2)
validator_prompt_template = Template(gleaning_config["prompt"])
validator_prompt_template = Template(
gleaning_config["validation_prompt"]
)

parsed_output = self.parse_llm_response(
response, output_schema, tools
Expand Down

0 comments on commit 652efad

Please sign in to comment.