Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions assets/evaluators/builtin/relevance/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type: "evaluator"
name: "builtin.relevance"
version: 3
version: 4
displayName: "Relevance-Evaluator"
description: "Assesses how well the response matches the user’s intent or question. Higher scores mean better alignment with the prompt. It’s best used for generative business writing such as summarizing meeting notes, creating marketing materials, and drafting email."
evaluatorType: "builtin"
Expand All @@ -23,14 +23,22 @@ dataMappingSchema:
type: "object"
properties:
query:
type: "string"
anyOf:
- type: "string"
- type: "array"
items:
type: "object"
response:
type: "string"
anyOf:
- type: "string"
- type: "array"
items:
type: "object"
required: ["query", "response"]
outputSchema:
relevance:
type: "ordinal"
desirable_direction: "increase"
min_value: 1
max_value: 5
path: ./evaluator
path: ./evaluator
Loading