Integrations
Integrations (외부 도구 연동)
Ragas를 외부 도구·플랫폼과 연동할 때 쓰는 API 문서예요. Opik에 평가 결과와 트레이스를 기록하는 트레이서, Helicone 메시지 변환 등이 여기 속해요.
출처: 문서
본문
EvaluatorChain(metric: Metric, **kwargs: Any)
upload_dataset(dataset: Testset, dataset_name: str, dataset_desc: str = '') -> Dataset
convert_to_ragas_messages(events: List[Event]) -> List[Message]
ragas.integrations.opik
OpikTracer
Bases: OpikTracer
Callback for Opik that can be used to log traces and evaluation scores to the Opik platform.
Attributes:
| Name | Type | Description |
|---|---|---|
tags |
list[string] |
The tags to set on each trace. |
metadata |
dict |
Additional metadata to log for each trace. |
ragas.integrations.helicone
convert_to_ragas_messages(messages: List[Union[HumanMessage, SystemMessage, AIMessage, ToolMessage]], metadata: bool = False) -> List[Union[HumanMessage, AIMessage, ToolMessage]]