Skip to content

Commit 69b80c1

Browse files
fix: move truncate messages before adding the system prompt (#369)
* fix: move truncate messages before adding the system prompt * fix: move truncate messages before adding the system prompt
1 parent 7b0661d commit 69b80c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docetl/optimizers/reduce_optimizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from concurrent.futures import ThreadPoolExecutor, as_completed
55
from statistics import mean
66
from typing import Any, Callable, Dict, List, Tuple, Union
7+
import uuid
78

89
from jinja2 import Template
910
from litellm import model_cost
@@ -473,6 +474,7 @@ def _optimize_decomposed_reduce(
473474

474475
if first_reduce_config.get("synthesize_resolve", True):
475476
resolve_config = {
477+
"name": f"synthesized_resolve_{uuid.uuid4().hex[:8]}",
476478
"type": "resolve",
477479
"empty": True,
478480
"embedding_model": "text-embedding-3-small",

0 commit comments

Comments
 (0)