chore: import upstream snapshot with attribution
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
CREATE TABLE `datasets` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`test_case_id` text NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `evals` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`description` text,
|
||||
`results` text NOT NULL,
|
||||
`config` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `evals_to_datasets` (
|
||||
`eval_id` text NOT NULL,
|
||||
`dataset_id` text NOT NULL,
|
||||
PRIMARY KEY(`dataset_id`, `eval_id`),
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`dataset_id`) REFERENCES `datasets`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `evals_to_prompts` (
|
||||
`eval_id` text NOT NULL,
|
||||
`prompt_id` text NOT NULL,
|
||||
PRIMARY KEY(`eval_id`, `prompt_id`),
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`prompt_id`) REFERENCES `prompts`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `prompts` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`prompt` text NOT NULL,
|
||||
`hash` text NOT NULL
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE datasets ADD `tests` text;--> statement-breakpoint
|
||||
ALTER TABLE `datasets` DROP COLUMN `test_case_id`;--> statement-breakpoint
|
||||
ALTER TABLE `prompts` DROP COLUMN `hash`;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE evals ADD `author` text;
|
||||
@@ -0,0 +1,8 @@
|
||||
CREATE INDEX `datasets_created_at_idx` ON `datasets` (`created_at`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_created_at_idx` ON `evals` (`created_at`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_author_idx` ON `evals` (`author`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_datasets_eval_id_idx` ON `evals_to_datasets` (`eval_id`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_datasets_dataset_id_idx` ON `evals_to_datasets` (`dataset_id`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_prompts_eval_id_idx` ON `evals_to_prompts` (`eval_id`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_prompts_prompt_id_idx` ON `evals_to_prompts` (`prompt_id`);--> statement-breakpoint
|
||||
CREATE INDEX `prompts_created_at_idx` ON `prompts` (`created_at`);
|
||||
@@ -0,0 +1,19 @@
|
||||
CREATE TABLE `evals_to_tags` (
|
||||
`eval_id` text NOT NULL,
|
||||
`tag_id` text NOT NULL,
|
||||
PRIMARY KEY(`eval_id`, `tag_id`),
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`tag_id`) REFERENCES `tags`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `tags` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`value` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `evals_tags_idx`;--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_tags_eval_id_idx` ON `evals_to_tags` (`eval_id`);--> statement-breakpoint
|
||||
CREATE INDEX `evals_to_tags_tag_id_idx` ON `evals_to_tags` (`tag_id`);--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `tags_name_unique` ON `tags` (`name`);--> statement-breakpoint
|
||||
CREATE INDEX `tags_name_idx` ON `tags` (`name`);
|
||||
@@ -0,0 +1,2 @@
|
||||
DROP INDEX IF EXISTS `tags_name_unique`;--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `tags_name_value_unique` ON `tags` (`name`,`value`);
|
||||
@@ -0,0 +1,42 @@
|
||||
CREATE TABLE `eval_results` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`updated_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`eval_id` text NOT NULL,
|
||||
`prompt_idx` integer NOT NULL,
|
||||
`test_case_idx` integer NOT NULL,
|
||||
`test_case` text NOT NULL,
|
||||
`prompt` text NOT NULL,
|
||||
`prompt_id` text,
|
||||
`provider` text NOT NULL,
|
||||
`provider_id` text,
|
||||
`latency_ms` integer,
|
||||
`cost` real,
|
||||
`response` text,
|
||||
`error` text,
|
||||
`success` integer NOT NULL,
|
||||
`score` real NOT NULL,
|
||||
`grading_result` text,
|
||||
`named_scores` text,
|
||||
`metadata` text,
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`prompt_id`) REFERENCES `prompts`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`provider_id`) REFERENCES `providers`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `evals_to_providers` (
|
||||
`provider_id` text NOT NULL,
|
||||
`eval_id` text NOT NULL,
|
||||
PRIMARY KEY(`provider_id`, `eval_id`),
|
||||
FOREIGN KEY (`provider_id`) REFERENCES `providers`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `providers` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`provider_id` text NOT NULL,
|
||||
`options` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE `evals` ADD `prompts` text;--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_eval_id_idx` ON `eval_results` (`eval_id`);
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `eval_results` RENAME COLUMN `test_case_idx` TO `test_idx`;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `providers` ADD `label` text;--> statement-breakpoint
|
||||
ALTER TABLE `providers` DROP COLUMN `options`;
|
||||
@@ -0,0 +1,19 @@
|
||||
PRAGMA foreign_keys=off;--> statement-breakpoint
|
||||
|
||||
-- Create a new table without the provider_id column
|
||||
CREATE TABLE `new_eval_results` AS SELECT * FROM `eval_results`;--> statement-breakpoint
|
||||
|
||||
-- Drop the provider_id column from the new table
|
||||
ALTER TABLE `new_eval_results` DROP COLUMN `provider_id`;--> statement-breakpoint
|
||||
|
||||
-- Drop the old table
|
||||
DROP TABLE `eval_results`;--> statement-breakpoint
|
||||
|
||||
-- Rename the new table to the original name
|
||||
ALTER TABLE `new_eval_results` RENAME TO `eval_results`;--> statement-breakpoint
|
||||
|
||||
-- The rest of your migration remains the same
|
||||
DROP TABLE `evals_to_providers`;--> statement-breakpoint
|
||||
DROP TABLE `providers`;--> statement-breakpoint
|
||||
|
||||
PRAGMA foreign_keys=on;
|
||||
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE `configs` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`updated_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`type` text NOT NULL,
|
||||
`config` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `configs_created_at_idx` ON `configs` (`created_at`);--> statement-breakpoint
|
||||
CREATE INDEX `configs_type_idx` ON `configs` (`type`);
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `eval_results` ADD `failure_reason` integer DEFAULT 0 NOT NULL;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `evals` ADD `vars` text;--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_eval_id_test_idx_idx` ON `eval_results` (`eval_id`,`test_idx`);
|
||||
@@ -0,0 +1,9 @@
|
||||
DROP INDEX `eval_result_eval_id_test_idx_idx`;--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_test_idx_idx` ON `eval_results` (`test_idx`);--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_response_idx` ON `eval_results` (`response`);--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_grading_result_reason_idx` ON `eval_results` (json_extract(grading_result, '$.reason'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_grading_result_comment_idx` ON `eval_results` (json_extract(grading_result, '$.comment'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_test_case_vars_idx` ON `eval_results` (json_extract(test_case, '$.vars'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_test_case_metadata_idx` ON `eval_results` (json_extract(metadata, '$'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_named_scores_idx` ON `eval_results` (json_extract(named_scores, '$'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_metadata_idx` ON `eval_results` (json_extract(metadata, '$'));
|
||||
@@ -0,0 +1,2 @@
|
||||
DROP INDEX `eval_result_test_idx_idx`;--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_test_idx` ON `eval_results` (`test_idx`);
|
||||
@@ -0,0 +1,29 @@
|
||||
CREATE TABLE `spans` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`trace_id` text NOT NULL,
|
||||
`span_id` text NOT NULL,
|
||||
`parent_span_id` text,
|
||||
`name` text NOT NULL,
|
||||
`start_time` integer NOT NULL,
|
||||
`end_time` integer,
|
||||
`attributes` text,
|
||||
`status_code` integer,
|
||||
`status_message` text,
|
||||
FOREIGN KEY (`trace_id`) REFERENCES `traces`(`trace_id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `spans_trace_id_idx` ON `spans` (`trace_id`);--> statement-breakpoint
|
||||
CREATE INDEX `spans_span_id_idx` ON `spans` (`span_id`);--> statement-breakpoint
|
||||
CREATE TABLE `traces` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`trace_id` text NOT NULL,
|
||||
`evaluation_id` text NOT NULL,
|
||||
`test_case_id` text NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`metadata` text,
|
||||
FOREIGN KEY (`evaluation_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `traces_trace_id_unique` ON `traces` (`trace_id`);--> statement-breakpoint
|
||||
CREATE INDEX `traces_evaluation_idx` ON `traces` (`evaluation_id`);--> statement-breakpoint
|
||||
CREATE INDEX `traces_trace_id_idx` ON `traces` (`trace_id`);
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX `eval_result_metadata_plugin_id_idx` ON `eval_results` (json_extract(metadata, '$.pluginId'));--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_metadata_strategy_id_idx` ON `eval_results` (json_extract(metadata, '$.strategyId'));
|
||||
@@ -0,0 +1,4 @@
|
||||
CREATE INDEX `eval_result_eval_test_idx` ON `eval_results` (`eval_id`,`test_idx`);--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_eval_success_idx` ON `eval_results` (`eval_id`,`success`);--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_eval_failure_idx` ON `eval_results` (`eval_id`,`failure_reason`);--> statement-breakpoint
|
||||
CREATE INDEX `eval_result_eval_test_success_idx` ON `eval_results` (`eval_id`,`test_idx`,`success`);
|
||||
@@ -0,0 +1,22 @@
|
||||
CREATE TABLE `model_audits` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`updated_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`name` text,
|
||||
`author` text,
|
||||
`model_path` text NOT NULL,
|
||||
`model_type` text,
|
||||
`results` text NOT NULL,
|
||||
`checks` text,
|
||||
`issues` text,
|
||||
`has_errors` integer NOT NULL,
|
||||
`total_checks` integer,
|
||||
`passed_checks` integer,
|
||||
`failed_checks` integer,
|
||||
`metadata` text
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_created_at_idx` ON `model_audits` (`created_at`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_model_path_idx` ON `model_audits` (`model_path`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_has_errors_idx` ON `model_audits` (`has_errors`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_model_type_idx` ON `model_audits` (`model_type`);
|
||||
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE `evals` ADD `is_redteam` integer DEFAULT false NOT NULL;--> statement-breakpoint
|
||||
CREATE INDEX `evals_is_redteam_idx` ON `evals` (`is_redteam`);--> statement-breakpoint
|
||||
|
||||
|
||||
UPDATE `evals` set `is_redteam` = CASE
|
||||
WHEN json_valid(config) AND json_extract(config, '$.redteam') IS NOT NULL THEN 1
|
||||
ELSE 0
|
||||
END;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `evals` ADD `runtime_options` text;
|
||||
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE `model_audits` ADD `model_id` text;--> statement-breakpoint
|
||||
ALTER TABLE `model_audits` ADD `revision_sha` text;--> statement-breakpoint
|
||||
ALTER TABLE `model_audits` ADD `content_hash` text;--> statement-breakpoint
|
||||
ALTER TABLE `model_audits` ADD `model_source` text;--> statement-breakpoint
|
||||
ALTER TABLE `model_audits` ADD `source_last_modified` integer;--> statement-breakpoint
|
||||
ALTER TABLE `model_audits` ADD `scanner_version` text;--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_model_id_idx` ON `model_audits` (`model_id`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_revision_sha_idx` ON `model_audits` (`revision_sha`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_content_hash_idx` ON `model_audits` (`content_hash`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_model_revision_idx` ON `model_audits` (`model_id`,`revision_sha`);--> statement-breakpoint
|
||||
CREATE INDEX `model_audits_model_content_idx` ON `model_audits` (`model_id`,`content_hash`);--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `idx_model_audits_unique_revision` ON `model_audits` (`model_id`, `revision_sha`) WHERE `revision_sha` IS NOT NULL;--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `idx_model_audits_unique_content` ON `model_audits` (`model_id`, `content_hash`) WHERE `revision_sha` IS NULL AND `content_hash` IS NOT NULL;
|
||||
@@ -0,0 +1,25 @@
|
||||
CREATE TABLE `blob_assets` (
|
||||
`hash` text PRIMARY KEY NOT NULL,
|
||||
`size_bytes` integer NOT NULL,
|
||||
`mime_type` text NOT NULL,
|
||||
`provider` text NOT NULL,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `blob_assets_provider_idx` ON `blob_assets` (`provider`);--> statement-breakpoint
|
||||
CREATE INDEX `blob_assets_created_at_idx` ON `blob_assets` (`created_at`);--> statement-breakpoint
|
||||
CREATE TABLE `blob_references` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`blob_hash` text NOT NULL,
|
||||
`eval_id` text NOT NULL,
|
||||
`test_idx` integer,
|
||||
`prompt_idx` integer,
|
||||
`location` text,
|
||||
`kind` text,
|
||||
`created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
FOREIGN KEY (`blob_hash`) REFERENCES `blob_assets`(`hash`) ON UPDATE no action ON DELETE cascade,
|
||||
FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `blob_references_blob_idx` ON `blob_references` (`blob_hash`);--> statement-breakpoint
|
||||
CREATE INDEX `blob_references_eval_idx` ON `blob_references` (`eval_id`);
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX `blob_assets_mime_type_idx` ON `blob_assets` (`mime_type`);--> statement-breakpoint
|
||||
CREATE INDEX `blob_references_blob_created_at_idx` ON `blob_references` (`blob_hash`,`created_at`);
|
||||
@@ -0,0 +1,14 @@
|
||||
-- Backfill `is_redteam` to match the runtime predicate `config.redteam !== undefined`
|
||||
-- used by writes in src/models/eval.ts.
|
||||
--
|
||||
-- Uses `json_type` (not `json_extract`) so that `{"redteam": null}` is classified as
|
||||
-- a redteam: `json_extract` returns SQL NULL for both missing keys and JSON null,
|
||||
-- but `json_type` only returns NULL when the key is missing.
|
||||
UPDATE `evals` SET `is_redteam` = CASE
|
||||
WHEN json_valid(`config`) AND json_type(`config`, '$.redteam') IS NOT NULL THEN 1
|
||||
ELSE 0
|
||||
END
|
||||
WHERE `is_redteam` != CASE
|
||||
WHEN json_valid(`config`) AND json_type(`config`, '$.redteam') IS NOT NULL THEN 1
|
||||
ELSE 0
|
||||
END;
|
||||
@@ -0,0 +1,68 @@
|
||||
# Database Migrations
|
||||
|
||||
**What this is:** Drizzle ORM migration files for SQLite database. Auto-generated SQL that applies schema changes.
|
||||
|
||||
## Schema is NOT Here
|
||||
|
||||
**Schema definitions are in `src/database/tables.ts`, NOT in this directory.**
|
||||
|
||||
This directory only contains generated SQL migration files.
|
||||
|
||||
## Migration Workflow
|
||||
|
||||
1. **Modify schema** in `src/database/tables.ts`
|
||||
2. **Generate migration:** `npm run db:generate`
|
||||
3. **Review SQL** in new `drizzle/NNNN_name.sql` file
|
||||
4. **Apply migration:** `npm run db:migrate`
|
||||
|
||||
## File Naming
|
||||
|
||||
Drizzle auto-generates names: `NNNN_adjective_noun.sql`
|
||||
|
||||
- `0000_lush_hellion.sql`
|
||||
- `0001_wide_calypso.sql`
|
||||
- Sequential numbering ensures order
|
||||
|
||||
## Key Commands
|
||||
|
||||
```bash
|
||||
npm run db:generate # Generate migration from schema changes
|
||||
npm run db:migrate # Apply pending migrations
|
||||
npm run db:studio # Open GUI at localhost:4983
|
||||
```
|
||||
|
||||
## Database Location
|
||||
|
||||
Default: `~/.promptfoo/promptfoo.db` (SQLite file)
|
||||
|
||||
Override the config directory with `PROMPTFOO_CONFIG_DIR`; the database file is `promptfoo.db` inside that directory.
|
||||
|
||||
**NEVER delete the database.** You may read from it but deletion destroys user data.
|
||||
|
||||
## SQLite Limitations
|
||||
|
||||
**Cannot drop columns** - SQLite doesn't support `ALTER TABLE DROP COLUMN`.
|
||||
|
||||
Workaround: Create new table, copy data, drop old table, rename new table.
|
||||
|
||||
**Cannot rename columns** (older SQLite) - Same workaround as drop column.
|
||||
|
||||
## Migration Best Practices
|
||||
|
||||
1. **Always review generated SQL** before applying
|
||||
2. **Never edit applied migrations** - create new migration instead
|
||||
3. **Backup before major changes:** `sqlite3 ~/.promptfoo/promptfoo.db ".backup backup.db"`
|
||||
4. **Test schema changes with isolated storage**: unit tests should use the shared in-memory DB; CLI, resume, WAL, and path-behavior tests may use an isolated `PROMPTFOO_CONFIG_DIR`
|
||||
|
||||
## What's Stored
|
||||
|
||||
- Evaluation results and test configurations
|
||||
- Execution traces for debugging
|
||||
- Analytics data and telemetry
|
||||
- User settings and preferences
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **Drizzle ORM** - Type-safe schema and migrations
|
||||
- **@libsql/client** - Async SQLite/libSQL driver. `getDb()` returns a Promise (`src/database/index.ts`), so always `await getDb()` before database work.
|
||||
- **SQLite / libSQL** - Embedded database
|
||||
@@ -0,0 +1 @@
|
||||
@AGENTS.md
|
||||
@@ -0,0 +1,221 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case_id": {
|
||||
"name": "test_case_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"tableTo": "datasets",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["dataset_id", "eval_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"tableTo": "prompts",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"hash": {
|
||||
"name": "hash",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"id": "8b53403f-5b6f-436a-862e-9fd17a52204e",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"tableTo": "datasets",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["dataset_id", "eval_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"tableTo": "prompts",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"id": "476c887f-edcb-4b29-b054-50a8383cc6c2",
|
||||
"prevId": "8b53403f-5b6f-436a-862e-9fd17a52204e"
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"tableTo": "datasets",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["dataset_id", "eval_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"tableTo": "evals",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"tableTo": "prompts",
|
||||
"columnsTo": ["id"],
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"id": "6325e41a-40cd-4db1-9e99-df139a264a14",
|
||||
"prevId": "476c887f-edcb-4b29-b054-50a8383cc6c2"
|
||||
}
|
||||
@@ -0,0 +1,369 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "30bcd0e4-50ab-4b8c-b995-93e31582c7c2",
|
||||
"prevId": "6325e41a-40cd-4db1-9e99-df139a264a14",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,638 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "db9ecf55-e7da-47dc-815a-4c5c278cb37b",
|
||||
"prevId": "30bcd0e4-50ab-4b8c-b995-93e31582c7c2",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case_idx": {
|
||||
"name": "test_case_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_provider_id_providers_id_fk": {
|
||||
"name": "eval_results_provider_id_providers_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_providers": {
|
||||
"name": "evals_to_providers",
|
||||
"columns": {
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_providers_provider_id_providers_id_fk": {
|
||||
"name": "evals_to_providers_provider_id_providers_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_providers_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_providers_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_providers_provider_id_eval_id_pk": {
|
||||
"columns": ["provider_id", "eval_id"],
|
||||
"name": "evals_to_providers_provider_id_eval_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"providers": {
|
||||
"name": "providers",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"options": {
|
||||
"name": "options",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,640 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "e10bb4e5-3cf9-4c22-9383-d1894e47267b",
|
||||
"prevId": "db9ecf55-e7da-47dc-815a-4c5c278cb37b",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_provider_id_providers_id_fk": {
|
||||
"name": "eval_results_provider_id_providers_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_providers": {
|
||||
"name": "evals_to_providers",
|
||||
"columns": {
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_providers_provider_id_providers_id_fk": {
|
||||
"name": "evals_to_providers_provider_id_providers_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_providers_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_providers_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_providers_provider_id_eval_id_pk": {
|
||||
"columns": ["provider_id", "eval_id"],
|
||||
"name": "evals_to_providers_provider_id_eval_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"providers": {
|
||||
"name": "providers",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"options": {
|
||||
"name": "options",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {
|
||||
"\"eval_results\".\"test_case_idx\"": "\"eval_results\".\"test_idx\""
|
||||
}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,649 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "107d087a-ef3a-4cad-8f3f-421b7ea73a26",
|
||||
"prevId": "e10bb4e5-3cf9-4c22-9383-d1894e47267b",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_provider_id_providers_id_fk": {
|
||||
"name": "eval_results_provider_id_providers_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_providers": {
|
||||
"name": "evals_to_providers",
|
||||
"columns": {
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"evals_to_providers_provider_id_providers_id_fk": {
|
||||
"name": "evals_to_providers_provider_id_providers_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "providers",
|
||||
"columnsFrom": ["provider_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_providers_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_providers_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_providers",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_providers_provider_id_eval_id_pk": {
|
||||
"columns": ["provider_id", "eval_id"],
|
||||
"name": "evals_to_providers_provider_id_eval_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"providers": {
|
||||
"name": "providers",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider_id": {
|
||||
"name": "provider_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"label": {
|
||||
"name": "label",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,554 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "a045d3e0-d52a-42da-a662-aea3e03beb74",
|
||||
"prevId": "107d087a-ef3a-4cad-8f3f-421b7ea73a26",
|
||||
"tables": {
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,619 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "5e481ffa-2de1-4718-9db1-a6edf93df64d",
|
||||
"prevId": "a045d3e0-d52a-42da-a662-aea3e03beb74",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,627 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "f2d1ba51-535b-403a-99e1-7d39801c8689",
|
||||
"prevId": "5e481ffa-2de1-4718-9db1-a6edf93df64d",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"failure_reason": {
|
||||
"name": "failure_reason",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,639 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "65aafa75-a63d-4e68-b726-24534a5909c9",
|
||||
"prevId": "f2d1ba51-535b-403a-99e1-7d39801c8689",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"failure_reason": {
|
||||
"name": "failure_reason",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_eval_id_test_idx_idx": {
|
||||
"name": "eval_result_eval_id_test_idx_idx",
|
||||
"columns": ["eval_id", "test_idx"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"vars": {
|
||||
"name": "vars",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,717 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "3039b69c-b45b-4117-bcd2-ac649e4c8da8",
|
||||
"prevId": "65aafa75-a63d-4e68-b726-24534a5909c9",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"failure_reason": {
|
||||
"name": "failure_reason",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_idx_idx": {
|
||||
"name": "eval_result_test_idx_idx",
|
||||
"columns": ["test_idx"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_response_idx": {
|
||||
"name": "eval_result_response_idx",
|
||||
"columns": ["response"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"name": "eval_result_grading_result_reason_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.reason')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"name": "eval_result_grading_result_comment_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.comment')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"name": "eval_result_test_case_vars_idx",
|
||||
"columns": ["json_extract(\"test_case\", '$.vars')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"name": "eval_result_test_case_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"name": "eval_result_named_scores_idx",
|
||||
"columns": ["json_extract(\"named_scores\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"name": "eval_result_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"vars": {
|
||||
"name": "vars",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.reason')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.comment')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"test_case\", '$.vars')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"named_scores\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,717 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "eaf9304d-bae8-487b-b2b9-2a330b6edd5f",
|
||||
"prevId": "3039b69c-b45b-4117-bcd2-ac649e4c8da8",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"failure_reason": {
|
||||
"name": "failure_reason",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_idx": {
|
||||
"name": "eval_result_test_idx",
|
||||
"columns": ["test_idx"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_response_idx": {
|
||||
"name": "eval_result_response_idx",
|
||||
"columns": ["response"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"name": "eval_result_grading_result_reason_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.reason')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"name": "eval_result_grading_result_comment_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.comment')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"name": "eval_result_test_case_vars_idx",
|
||||
"columns": ["json_extract(\"test_case\", '$.vars')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"name": "eval_result_test_case_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"name": "eval_result_named_scores_idx",
|
||||
"columns": ["json_extract(\"named_scores\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"name": "eval_result_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"vars": {
|
||||
"name": "vars",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.reason')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.comment')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"test_case\", '$.vars')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"named_scores\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,897 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "b5461429-a00f-43b7-9d03-cf178cb5dd84",
|
||||
"prevId": "eaf9304d-bae8-487b-b2b9-2a330b6edd5f",
|
||||
"tables": {
|
||||
"configs": {
|
||||
"name": "configs",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"configs_created_at_idx": {
|
||||
"name": "configs_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"configs_type_idx": {
|
||||
"name": "configs_type_idx",
|
||||
"columns": ["type"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"datasets": {
|
||||
"name": "datasets",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tests": {
|
||||
"name": "tests",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"datasets_created_at_idx": {
|
||||
"name": "datasets_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"eval_results": {
|
||||
"name": "eval_results",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_idx": {
|
||||
"name": "prompt_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_idx": {
|
||||
"name": "test_idx",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case": {
|
||||
"name": "test_case",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"provider": {
|
||||
"name": "provider",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"latency_ms": {
|
||||
"name": "latency_ms",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"cost": {
|
||||
"name": "cost",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"response": {
|
||||
"name": "response",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"error": {
|
||||
"name": "error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"failure_reason": {
|
||||
"name": "failure_reason",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"success": {
|
||||
"name": "success",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"score": {
|
||||
"name": "score",
|
||||
"type": "real",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grading_result": {
|
||||
"name": "grading_result",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"named_scores": {
|
||||
"name": "named_scores",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"eval_result_eval_id_idx": {
|
||||
"name": "eval_result_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_idx": {
|
||||
"name": "eval_result_test_idx",
|
||||
"columns": ["test_idx"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_response_idx": {
|
||||
"name": "eval_result_response_idx",
|
||||
"columns": ["response"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"name": "eval_result_grading_result_reason_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.reason')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"name": "eval_result_grading_result_comment_idx",
|
||||
"columns": ["json_extract(\"grading_result\", '$.comment')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"name": "eval_result_test_case_vars_idx",
|
||||
"columns": ["json_extract(\"test_case\", '$.vars')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"name": "eval_result_test_case_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"name": "eval_result_named_scores_idx",
|
||||
"columns": ["json_extract(\"named_scores\", '$')"],
|
||||
"isUnique": false
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"name": "eval_result_metadata_idx",
|
||||
"columns": ["json_extract(\"metadata\", '$')"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"eval_results_eval_id_evals_id_fk": {
|
||||
"name": "eval_results_eval_id_evals_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"eval_results_prompt_id_prompts_id_fk": {
|
||||
"name": "eval_results_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "eval_results",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals": {
|
||||
"name": "evals",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"author": {
|
||||
"name": "author",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"results": {
|
||||
"name": "results",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"vars": {
|
||||
"name": "vars",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_created_at_idx": {
|
||||
"name": "evals_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_author_idx": {
|
||||
"name": "evals_author_idx",
|
||||
"columns": ["author"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_datasets": {
|
||||
"name": "evals_to_datasets",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dataset_id": {
|
||||
"name": "dataset_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_datasets_eval_id_idx": {
|
||||
"name": "evals_to_datasets_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_datasets_dataset_id_idx": {
|
||||
"name": "evals_to_datasets_dataset_id_idx",
|
||||
"columns": ["dataset_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_datasets_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_datasets_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_datasets_dataset_id_datasets_id_fk": {
|
||||
"name": "evals_to_datasets_dataset_id_datasets_id_fk",
|
||||
"tableFrom": "evals_to_datasets",
|
||||
"tableTo": "datasets",
|
||||
"columnsFrom": ["dataset_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_datasets_eval_id_dataset_id_pk": {
|
||||
"columns": ["eval_id", "dataset_id"],
|
||||
"name": "evals_to_datasets_eval_id_dataset_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_prompts": {
|
||||
"name": "evals_to_prompts",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"prompt_id": {
|
||||
"name": "prompt_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_prompts_eval_id_idx": {
|
||||
"name": "evals_to_prompts_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_prompts_prompt_id_idx": {
|
||||
"name": "evals_to_prompts_prompt_id_idx",
|
||||
"columns": ["prompt_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_prompts_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_prompts_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_prompts_prompt_id_prompts_id_fk": {
|
||||
"name": "evals_to_prompts_prompt_id_prompts_id_fk",
|
||||
"tableFrom": "evals_to_prompts",
|
||||
"tableTo": "prompts",
|
||||
"columnsFrom": ["prompt_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_prompts_eval_id_prompt_id_pk": {
|
||||
"columns": ["eval_id", "prompt_id"],
|
||||
"name": "evals_to_prompts_eval_id_prompt_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"evals_to_tags": {
|
||||
"name": "evals_to_tags",
|
||||
"columns": {
|
||||
"eval_id": {
|
||||
"name": "eval_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"tag_id": {
|
||||
"name": "tag_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"evals_to_tags_eval_id_idx": {
|
||||
"name": "evals_to_tags_eval_id_idx",
|
||||
"columns": ["eval_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"evals_to_tags_tag_id_idx": {
|
||||
"name": "evals_to_tags_tag_id_idx",
|
||||
"columns": ["tag_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"evals_to_tags_eval_id_evals_id_fk": {
|
||||
"name": "evals_to_tags_eval_id_evals_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["eval_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"evals_to_tags_tag_id_tags_id_fk": {
|
||||
"name": "evals_to_tags_tag_id_tags_id_fk",
|
||||
"tableFrom": "evals_to_tags",
|
||||
"tableTo": "tags",
|
||||
"columnsFrom": ["tag_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
"evals_to_tags_eval_id_tag_id_pk": {
|
||||
"columns": ["eval_id", "tag_id"],
|
||||
"name": "evals_to_tags_eval_id_tag_id_pk"
|
||||
}
|
||||
},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"prompts": {
|
||||
"name": "prompts",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"prompt": {
|
||||
"name": "prompt",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"prompts_created_at_idx": {
|
||||
"name": "prompts_created_at_idx",
|
||||
"columns": ["created_at"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"spans": {
|
||||
"name": "spans",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"trace_id": {
|
||||
"name": "trace_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"span_id": {
|
||||
"name": "span_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"parent_span_id": {
|
||||
"name": "parent_span_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"start_time": {
|
||||
"name": "start_time",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"end_time": {
|
||||
"name": "end_time",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"attributes": {
|
||||
"name": "attributes",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status_code": {
|
||||
"name": "status_code",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status_message": {
|
||||
"name": "status_message",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"spans_trace_id_idx": {
|
||||
"name": "spans_trace_id_idx",
|
||||
"columns": ["trace_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"spans_span_id_idx": {
|
||||
"name": "spans_span_id_idx",
|
||||
"columns": ["span_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"spans_trace_id_traces_trace_id_fk": {
|
||||
"name": "spans_trace_id_traces_trace_id_fk",
|
||||
"tableFrom": "spans",
|
||||
"tableTo": "traces",
|
||||
"columnsFrom": ["trace_id"],
|
||||
"columnsTo": ["trace_id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"tags": {
|
||||
"name": "tags",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"value": {
|
||||
"name": "value",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"tags_name_idx": {
|
||||
"name": "tags_name_idx",
|
||||
"columns": ["name"],
|
||||
"isUnique": false
|
||||
},
|
||||
"tags_name_value_unique": {
|
||||
"name": "tags_name_value_unique",
|
||||
"columns": ["name", "value"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"traces": {
|
||||
"name": "traces",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"trace_id": {
|
||||
"name": "trace_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"evaluation_id": {
|
||||
"name": "evaluation_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"test_case_id": {
|
||||
"name": "test_case_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "CURRENT_TIMESTAMP"
|
||||
},
|
||||
"metadata": {
|
||||
"name": "metadata",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"traces_trace_id_unique": {
|
||||
"name": "traces_trace_id_unique",
|
||||
"columns": ["trace_id"],
|
||||
"isUnique": true
|
||||
},
|
||||
"traces_evaluation_idx": {
|
||||
"name": "traces_evaluation_idx",
|
||||
"columns": ["evaluation_id"],
|
||||
"isUnique": false
|
||||
},
|
||||
"traces_trace_id_idx": {
|
||||
"name": "traces_trace_id_idx",
|
||||
"columns": ["trace_id"],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"traces_evaluation_id_evals_id_fk": {
|
||||
"name": "traces_evaluation_id_evals_id_fk",
|
||||
"tableFrom": "traces",
|
||||
"tableTo": "evals",
|
||||
"columnsFrom": ["evaluation_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {
|
||||
"eval_result_grading_result_reason_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.reason')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_grading_result_comment_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"grading_result\", '$.comment')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_vars_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"test_case\", '$.vars')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_test_case_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_named_scores_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"named_scores\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eval_result_metadata_idx": {
|
||||
"columns": {
|
||||
"json_extract(\"metadata\", '$')": {
|
||||
"isExpression": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"version": "5",
|
||||
"dialect": "sqlite",
|
||||
"entries": [
|
||||
{
|
||||
"idx": 0,
|
||||
"version": "5",
|
||||
"when": 1710348564252,
|
||||
"tag": "0000_lush_hellion",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 1,
|
||||
"version": "5",
|
||||
"when": 1710706957023,
|
||||
"tag": "0001_wide_calypso",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "5",
|
||||
"when": 1719636070237,
|
||||
"tag": "0002_tidy_juggernaut",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 3,
|
||||
"version": "6",
|
||||
"when": 1722936175344,
|
||||
"tag": "0003_lively_naoko",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 4,
|
||||
"version": "6",
|
||||
"when": 1724977752728,
|
||||
"tag": "0004_minor_peter_quill",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 5,
|
||||
"version": "6",
|
||||
"when": 1725929907379,
|
||||
"tag": "0005_silky_millenium_guard",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "6",
|
||||
"when": 1727893035888,
|
||||
"tag": "0006_harsh_caretaker",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 7,
|
||||
"version": "6",
|
||||
"when": 1727991120763,
|
||||
"tag": "0007_cloudy_wong",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 8,
|
||||
"version": "6",
|
||||
"when": 1729202208526,
|
||||
"tag": "0008_broad_boomer",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 9,
|
||||
"version": "6",
|
||||
"when": 1729541645771,
|
||||
"tag": "0009_strong_marten_broadcloak",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 10,
|
||||
"version": "6",
|
||||
"when": 1730348380232,
|
||||
"tag": "0010_needy_bishop",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 11,
|
||||
"version": "6",
|
||||
"when": 1732340901582,
|
||||
"tag": "0011_moaning_millenium_guard",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 12,
|
||||
"version": "6",
|
||||
"when": 1747540425042,
|
||||
"tag": "0012_late_marten_broadcloak",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 13,
|
||||
"version": "6",
|
||||
"when": 1747884934558,
|
||||
"tag": "0013_previous_dormammu",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 14,
|
||||
"version": "6",
|
||||
"when": 1747944795053,
|
||||
"tag": "0014_lazy_captain_universe",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 15,
|
||||
"version": "6",
|
||||
"when": 1750564150910,
|
||||
"tag": "0015_zippy_wallop",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 16,
|
||||
"version": "6",
|
||||
"when": 1753822088137,
|
||||
"tag": "0016_jazzy_zemo",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 17,
|
||||
"version": "6",
|
||||
"when": 1755317492245,
|
||||
"tag": "0017_reflective_praxagora",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 18,
|
||||
"version": "6",
|
||||
"when": 1755723226650,
|
||||
"tag": "0018_fat_vanisher",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 19,
|
||||
"version": "6",
|
||||
"when": 1757026874299,
|
||||
"tag": "0019_new_clint_barton",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 20,
|
||||
"version": "6",
|
||||
"when": 1757650210456,
|
||||
"tag": "0020_skinny_maverick",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 21,
|
||||
"version": "6",
|
||||
"when": 1761694564206,
|
||||
"tag": "0021_mysterious_madelyne_pryor",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 22,
|
||||
"version": "6",
|
||||
"when": 1765906817572,
|
||||
"tag": "0022_sleepy_ultimo",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 23,
|
||||
"version": "6",
|
||||
"when": 1767985150681,
|
||||
"tag": "0023_wooden_mandrill",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 24,
|
||||
"version": "6",
|
||||
"when": 1779816393227,
|
||||
"tag": "0024_repair_eval_redteam_flags",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user