opik 2.2.71 → 2.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-QUJYDUDU.js +404 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/{suite-IGQZSXDQ.js → suite-D52ABTPJ.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZGPCFGDR.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -946,6 +946,8 @@ interface CreateDatasetItemsFromSpansRequest {
|
|
|
946
946
|
/** Optional evaluators to apply to the created items */
|
|
947
947
|
evaluators?: EvaluatorItem[];
|
|
948
948
|
executionPolicy?: ExecutionPolicy$1;
|
|
949
|
+
/** Optional mapping of dataset item field name to a path into the span, e.g. 'input.input_text'. Takes precedence over the fields produced by enrichment_options. Ignored for test suite datasets. */
|
|
950
|
+
fieldMappings?: Record<string, string>;
|
|
949
951
|
}
|
|
950
952
|
|
|
951
953
|
/**
|
|
@@ -962,6 +964,8 @@ interface CreateDatasetItemsFromTracesRequest {
|
|
|
962
964
|
/** Optional evaluators to apply to the created items */
|
|
963
965
|
evaluators?: EvaluatorItem[];
|
|
964
966
|
executionPolicy?: ExecutionPolicy$1;
|
|
967
|
+
/** Optional mapping of dataset item field name to a path into the trace, e.g. 'input.input_text'. Takes precedence over the fields produced by enrichment_options. Ignored for test suite datasets. */
|
|
968
|
+
fieldMappings?: Record<string, string>;
|
|
965
969
|
}
|
|
966
970
|
|
|
967
971
|
/**
|
|
@@ -6885,6 +6889,7 @@ interface PromptVariant {
|
|
|
6885
6889
|
messages: Message[];
|
|
6886
6890
|
configs?: Record<string, JsonNode>;
|
|
6887
6891
|
promptVersions?: PromptVersionLink[];
|
|
6892
|
+
experimentName?: string;
|
|
6888
6893
|
}
|
|
6889
6894
|
|
|
6890
6895
|
interface PromptVersionDetail {
|
package/dist/index.d.ts
CHANGED
|
@@ -946,6 +946,8 @@ interface CreateDatasetItemsFromSpansRequest {
|
|
|
946
946
|
/** Optional evaluators to apply to the created items */
|
|
947
947
|
evaluators?: EvaluatorItem[];
|
|
948
948
|
executionPolicy?: ExecutionPolicy$1;
|
|
949
|
+
/** Optional mapping of dataset item field name to a path into the span, e.g. 'input.input_text'. Takes precedence over the fields produced by enrichment_options. Ignored for test suite datasets. */
|
|
950
|
+
fieldMappings?: Record<string, string>;
|
|
949
951
|
}
|
|
950
952
|
|
|
951
953
|
/**
|
|
@@ -962,6 +964,8 @@ interface CreateDatasetItemsFromTracesRequest {
|
|
|
962
964
|
/** Optional evaluators to apply to the created items */
|
|
963
965
|
evaluators?: EvaluatorItem[];
|
|
964
966
|
executionPolicy?: ExecutionPolicy$1;
|
|
967
|
+
/** Optional mapping of dataset item field name to a path into the trace, e.g. 'input.input_text'. Takes precedence over the fields produced by enrichment_options. Ignored for test suite datasets. */
|
|
968
|
+
fieldMappings?: Record<string, string>;
|
|
965
969
|
}
|
|
966
970
|
|
|
967
971
|
/**
|
|
@@ -6885,6 +6889,7 @@ interface PromptVariant {
|
|
|
6885
6889
|
messages: Message[];
|
|
6886
6890
|
configs?: Record<string, JsonNode>;
|
|
6887
6891
|
promptVersions?: PromptVersionLink[];
|
|
6892
|
+
experimentName?: string;
|
|
6888
6893
|
}
|
|
6889
6894
|
|
|
6890
6895
|
interface PromptVersionDetail {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-QUJYDUDU.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-QUJYDUDU.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-QUJYDUDU.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-QUJYDUDU.js';Ca();
|