Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

0000_lush_hellion.sql 1.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  1. CREATE TABLE `datasets` (
  2. `id` text PRIMARY KEY NOT NULL,
  3. `test_case_id` text NOT NULL,
  4. `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL
  5. );
  6. --> statement-breakpoint
  7. CREATE TABLE `evals` (
  8. `id` text PRIMARY KEY NOT NULL,
  9. `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
  10. `description` text,
  11. `results` text NOT NULL,
  12. `config` text NOT NULL
  13. );
  14. --> statement-breakpoint
  15. CREATE TABLE `evals_to_datasets` (
  16. `eval_id` text NOT NULL,
  17. `dataset_id` text NOT NULL,
  18. PRIMARY KEY(`dataset_id`, `eval_id`),
  19. FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
  20. FOREIGN KEY (`dataset_id`) REFERENCES `datasets`(`id`) ON UPDATE no action ON DELETE no action
  21. );
  22. --> statement-breakpoint
  23. CREATE TABLE `evals_to_prompts` (
  24. `eval_id` text NOT NULL,
  25. `prompt_id` text NOT NULL,
  26. PRIMARY KEY(`eval_id`, `prompt_id`),
  27. FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
  28. FOREIGN KEY (`prompt_id`) REFERENCES `prompts`(`id`) ON UPDATE no action ON DELETE no action
  29. );
  30. --> statement-breakpoint
  31. CREATE TABLE `prompts` (
  32. `id` text PRIMARY KEY NOT NULL,
  33. `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
  34. `prompt` text NOT NULL,
  35. `hash` text NOT NULL
  36. );
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...