-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simpler evaluations — part 2.4 #533
Conversation
` | ||
--- | ||
provider: ${providerResult.value!.name} | ||
model: ${evaluation.metadata.model} | ||
temperature: 0.2 | ||
schema: | ||
type: object | ||
properties: | ||
result: | ||
type: ${resultSchema[evaluation.resultType]} | ||
reason: | ||
type: string | ||
required: | ||
- value | ||
- reason | ||
--- | ||
|
||
You’re an expert LLM evaluator. Your objective is to evaluate the response from an LLM model based on this goal: | ||
|
||
${evaluation.metadata.objective} | ||
|
||
${evaluation.metadata.additionalInstructions ? 'Additionally, you should follow these instructions:\n\n' + evaluation.metadata.additionalInstructions : ''} | ||
|
||
Now, evaluate the assistant response for the following conversation, based on your instructions: | ||
|
||
{{ messages.all }} | ||
|
||
Also, here is some aditional metadata about the LLM response. It may or may not be relevant to your objective. | ||
- Cost: {{ cost }} cents. | ||
- Duration: {{ duration }} milliseconds. | ||
|
||
You must respond with a JSON object with the following properties: | ||
- value: ${valueInformation(evaluation)} | ||
- reason: A string explaining your evaluation decision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The evaluation that will be generated from the new "simple evaluations" configuration!
8249b97
to
84d0e4b
Compare
...private)/evaluations/(evaluation)/[evaluationUuid]/dashboard/_components/EvaluationStats.tsx
Show resolved
Hide resolved
...id]/documents/[documentUuid]/evaluations/[evaluationId]/_components/MetricsSummary/index.tsx
Show resolved
Hide resolved
...itor/Editor/RefineModal/steps/2_SelectEvaluationResults/SelectableEvaluationResultsTable.tsx
Show resolved
Hide resolved
|
||
You must respond with a JSON object with the following properties: | ||
- value: ${valueInformation(evaluation)} | ||
- reason: A string explaining your evaluation decision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that even necessary? we are already adding a json schema and structure output in the ai request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also adds the descriptions for these values, which are defined for the user. Also, OpenAI recommends to explain the schema in the context in addition to defining it in the configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description can also be added in the json schema then
6c67335
to
c97f2e3
Compare
c97f2e3
to
1106ebb
Compare
Part 2.4
Although legacy evaluation configuration is still available from the
metadata
(theconfiguration
jsonb column), all the code has been adapted to use the newconfiguration
attribute instead (the respectiveEvaluationConfiguration
table for each result type).Additionally, added the prompt that will generate from the configuration of the new "simple evaluations"