-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8999142
commit 2d1bdb2
Showing
21 changed files
with
3,465 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# Ignore outputs from Empirical | ||
.empiricalrun | ||
|
||
# Ignore outputs from Empirical | ||
.empiricalrun |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Config } from "empiricalrun"; | ||
|
||
const config: Config = { | ||
runs: [ | ||
{ | ||
type: "model", | ||
provider: "openai", | ||
model: "gpt-3.5-turbo", | ||
prompt: | ||
"Extract the name, age and location from the message, and respond with a JSON object. If an entity is missing, respond with null.\n\nMessage: {{user_message}}", | ||
}, | ||
{ | ||
type: "model", | ||
provider: "openai", | ||
model: "gpt-4-turbo-preview", | ||
prompt: | ||
"Extract the name, age and location from the message, and respond with a JSON object. If an entity is missing, respond with null.\n\nMessage: {{user_message}}", | ||
parameters: { | ||
response_format: { | ||
type: "json_object", | ||
}, | ||
}, | ||
}, | ||
], | ||
dataset: { | ||
samples: [ | ||
{ | ||
inputs: { | ||
user_message: | ||
"Hi my name is John Doe. I'm 26 years old and I work in real estate.", | ||
}, | ||
}, | ||
{ | ||
inputs: { | ||
user_message: | ||
"This is Alice. I am a nurse from Maryland. I was born in 1990.", | ||
}, | ||
}, | ||
], | ||
}, | ||
scorers: [ | ||
{ | ||
type: "json-syntax", | ||
}, | ||
], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.