Merge branch 'main' of github.com:corbt/prompt-lab
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Warnings:
|
Warnings:
|
||||||
|
|
||||||
- Added the required column `input` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `inputTokens` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
- Added the required column `inputTokens` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
||||||
- Added the required column `outputTokens` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
- Added the required column `outputTokens` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
||||||
- Added the required column `type` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
- Added the required column `type` to the `DatasetEntry` table without a default value. This is not possible if the table is not empty.
|
||||||
@@ -14,7 +13,7 @@ CREATE TYPE "DatasetEntryType" AS ENUM ('TRAIN', 'TEST');
|
|||||||
ALTER TABLE "Dataset" ADD COLUMN "trainingRatio" DOUBLE PRECISION NOT NULL DEFAULT 0.8;
|
ALTER TABLE "Dataset" ADD COLUMN "trainingRatio" DOUBLE PRECISION NOT NULL DEFAULT 0.8;
|
||||||
|
|
||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE "DatasetEntry" ADD COLUMN "input" JSONB NOT NULL,
|
ALTER TABLE "DatasetEntry" ADD COLUMN "input" JSONB NOT NULL DEFAULT '[]',
|
||||||
ADD COLUMN "inputTokens" INTEGER NOT NULL,
|
ADD COLUMN "inputTokens" INTEGER NOT NULL,
|
||||||
ADD COLUMN "output" JSONB,
|
ADD COLUMN "output" JSONB,
|
||||||
ADD COLUMN "outputTokens" INTEGER NOT NULL,
|
ADD COLUMN "outputTokens" INTEGER NOT NULL,
|
||||||
@@ -202,7 +202,7 @@ model DatasetEntry {
|
|||||||
loggedCallId String @db.Uuid
|
loggedCallId String @db.Uuid
|
||||||
loggedCall LoggedCall @relation(fields: [loggedCallId], references: [id], onDelete: Cascade)
|
loggedCall LoggedCall @relation(fields: [loggedCallId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
input Json
|
input Json @default("[]")
|
||||||
output Json?
|
output Json?
|
||||||
inputTokens Int
|
inputTokens Int
|
||||||
outputTokens Int
|
outputTokens Int
|
||||||
|
|||||||
Reference in New Issue
Block a user