@arizeai/phoenix-evals 0.0.5 → 0.0.6

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.
@@ -22,11 +22,13 @@ export function createHallucinationEvaluator(
22
22
  const {
23
23
  choices = HALLUCINATION_CHOICES,
24
24
  promptTemplate = HALLUCINATION_TEMPLATE,
25
+ ...rest
25
26
  } = args;
26
27
  const hallucinationEvaluatorFn = createClassifier<string, string>({
27
28
  ...args,
28
29
  promptTemplate,
29
30
  choices,
31
+ ...rest,
30
32
  });
31
33
  return hallucinationEvaluatorFn;
32
34
  }
@@ -1,4 +1,5 @@
1
1
  import { LanguageModel } from "ai";
2
+ import { WithTelemetry } from "./otel";
2
3
 
3
4
  /**
4
5
  * The arguments for an evaluation
@@ -63,8 +64,8 @@ export type ClassificationChoicesMap = Record<string, number>;
63
64
  /**
64
65
  * The arguments for creating a classification-based evaluator
65
66
  */
66
- export interface CreateClassifierArgs {
67
- /**
67
+ export interface CreateClassifierArgs extends WithTelemetry {
68
+ /*
68
69
  * The LLM to use for classification / evaluation
69
70
  */
70
71
  model: LanguageModel;