-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add js and ts config support (#218)
- Loading branch information
1 parent
d0fc432
commit d45cc70
Showing
68 changed files
with
268 additions
and
736 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,9 @@ | ||
--- | ||
"empiricalrun": minor | ||
"@empiricalrun/json-schema": minor | ||
"@empiricalrun/types": minor | ||
"@empiricalrun/typescript-config": patch | ||
"web": patch | ||
--- | ||
|
||
feat: add support for js and ts config |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
module.exports = { | ||
output: "export", | ||
distDir: "../../packages/cli/dist/webapp", | ||
distDir: "../../packages/empiricalrun/dist/webapp", | ||
productionBrowserSourceMaps: true, | ||
optimizeFonts: false, | ||
}; |
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,30 @@ | ||
/** @type {import("empiricalrun").Config} */ | ||
export default { | ||
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}}" | ||
} | ||
], | ||
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" | ||
} | ||
] | ||
}; |
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,18 @@ | ||
{ | ||
"name": "using-js-config", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@empiricalrun/types": "workspace:^" | ||
}, | ||
"dependencies": { | ||
"empiricalrun": "workspace:^" | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.