Skip to content

Commit

Permalink
Add new log message for experiment item upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Nov 26, 2024
1 parent cd5eeea commit 5fe9261
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdks/python/src/opik/evaluation/scorer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import tqdm
import logging
import time
from concurrent import futures

from typing import List, Optional, Dict, Any, Union, Callable
Expand Down Expand Up @@ -114,8 +115,10 @@ def _process_item(
dataset_item_id=item.id,
trace_id=trace_data.id,
)

insert_start = time.time()
LOGGER.debug("Experiment item insertion started: %s", experiment_item_.trace_id)
experiment_.insert(experiment_items=[experiment_item_])
LOGGER.debug("Experiment item insertion ended : %s, with time %s", experiment_item_.trace_id, time.time() - insert_start)


def score_tasks(
Expand Down

0 comments on commit 5fe9261

Please sign in to comment.