-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts for running prior-knowledge functions
- Loading branch information
Showing
7 changed files
with
81 additions
and
109 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
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
Empty file.
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,26 @@ | ||
import { DatasetProfile } from "grillo-datasets/src/lib/types"; | ||
import logger from "../lib/logger"; | ||
import { dsNameFromDsSample } from "../lib/experiments"; | ||
import { gpt35turbo, gpt4, gpt4turbo } from "../lib/models"; | ||
import { rg65 } from "grillo-datasets"; | ||
|
||
|
||
const nameFromSample = async (ds: DatasetProfile) => { | ||
logger.info('Starting') | ||
console.log('GPT-3.5 Turbo 1106'); | ||
const gpt35turbo_res = await dsNameFromDsSample.perform(1, ds, gpt35turbo); | ||
const gpt4_res = await dsNameFromDsSample.perform(1, ds, gpt4); | ||
const gpt4turbo_res = await dsNameFromDsSample.perform(1, ds, gpt4turbo); | ||
|
||
logger.info({ ...gpt35turbo_res.combinedResult.resultTypes }, `gpt35turbo_res ${gpt35turbo_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4_res.combinedResult.resultTypes }, `gpt4_res ${gpt4_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4turbo_res.combinedResult.resultTypes }, `gpt4turbo_res ${gpt4turbo_res.combinedResult.avg}`); | ||
} | ||
|
||
nameFromSample(rg65).then(() => { | ||
logger.info('Done'); | ||
process.exit(0); | ||
}); | ||
|
||
|
||
|
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,26 @@ | ||
import { DatasetProfile } from "grillo-datasets/src/lib/types"; | ||
import { dsPaperFromDsName } from "../lib/experiments"; | ||
import { gpt35turbo, gpt4, gpt4turbo } from "../lib/models"; | ||
import logger from "../lib/logger"; | ||
import { rg65 } from "grillo-datasets"; | ||
|
||
const paperFromName = async (ds: DatasetProfile) => { | ||
|
||
logger.info('Starting') | ||
const gpt35turbo_res = await dsPaperFromDsName.perform(1, ds, gpt35turbo); | ||
const gpt4_res = await dsPaperFromDsName.perform(1, ds, gpt4); | ||
const gpt4turbo_res = await dsPaperFromDsName.perform(1, ds, gpt4turbo); | ||
|
||
logger.info({ ...gpt35turbo_res.combinedResult.resultTypes }, `gpt35turbo_res ${gpt35turbo_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4_res.combinedResult.resultTypes }, `gpt4_res ${gpt4_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4turbo_res.combinedResult.resultTypes }, `gpt4turbo_res ${gpt4turbo_res.combinedResult.avg}`); | ||
} | ||
|
||
paperFromName(rg65).then(() => { | ||
logger.info('Done'); | ||
process.exit(0); | ||
}); | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { DatasetProfile } from "grillo-datasets/src/lib/types"; | ||
import logger from "../lib/logger"; | ||
import { gpt35turbo, gpt4, gpt4turbo } from "../lib/models"; | ||
import { dsSampleFromDsSample } from "../lib/experiments"; | ||
import { rg65 } from "grillo-datasets"; | ||
|
||
const sampleFromSample = async (ds: DatasetProfile) => { | ||
logger.info('Starting') | ||
const gpt35turbo_res = await dsSampleFromDsSample.perform(1, ds, gpt35turbo); | ||
const gpt4_res = await dsSampleFromDsSample.perform(1, ds, gpt4); | ||
const gpt4turbo_res = await dsSampleFromDsSample.perform(1, ds, gpt4turbo); | ||
|
||
logger.info({ ...gpt35turbo_res.combinedResult.resultTypes }, `gpt35turbo_res ${gpt35turbo_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4_res.combinedResult.resultTypes }, `gpt4_res ${gpt4_res.combinedResult.avg}`); | ||
logger.info({ ...gpt4turbo_res.combinedResult.resultTypes }, `gpt4turbo_res ${gpt4turbo_res.combinedResult.avg}`); | ||
} | ||
|
||
sampleFromSample(rg65).then(() => { | ||
logger.info('Done'); | ||
process.exit(0); | ||
}); | ||
|