Skip to content

Commit 7721dcc

Browse files
committed
add root_trace_id to update
1 parent 0372296 commit 7721dcc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

parea/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from typing import Any, AsyncIterable, Callable, Dict, Iterable, List, Optional, Union
2+
13
import asyncio
24
import logging
35
import os
46
import time
5-
from typing import Any, AsyncIterable, Callable, Dict, Iterable, List, Optional, Union
67

78
import httpx
89
from attrs import asdict, define, field
@@ -13,8 +14,7 @@
1314
from parea.cache.cache import Cache
1415
from parea.constants import PAREA_OS_ENV_EXPERIMENT_UUID
1516
from parea.experiment.datasets import create_test_cases, create_test_collection
16-
from parea.helpers import gen_trace_id, serialize_metadata_values, structure_trace_log_from_api, \
17-
structure_trace_logs_from_api
17+
from parea.helpers import gen_trace_id, serialize_metadata_values, structure_trace_log_from_api, structure_trace_logs_from_api
1818
from parea.parea_logger import parea_logger
1919
from parea.schemas import EvaluationResult
2020
from parea.schemas.models import (

parea/cookbook/langchain/trace_langchain_RAG_evals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import boto3
66
from dotenv import load_dotenv
7+
78
# LangChain libs
89
from langchain.chat_models import ChatOpenAI
910
from langchain.document_loaders import RecursiveUrlLoader

0 commit comments

Comments
 (0)