|
1 | 1 | use pgml_components::component; |
2 | 2 | use sailfish::TemplateOnce; |
3 | 3 |
|
4 | | -// const EXAMPLE_QUESTIONS: [(&'static str, &'static str); 4] = [ |
5 | | -// ("Here is a Sample Question", "sample question continued"), |
6 | | -// ("Here is a Sample Question", "sample question continued"), |
7 | | -// ("Here is a Sample Question", "sample question continued"), |
8 | | -// ("Here is a Sample Question", "sample question continued"), |
9 | | -// ]; |
10 | | - |
11 | 4 | typeExampleQuestions =[(&'staticstr,[(&'staticstr,&'staticstr);4]);4]; |
12 | 5 | constEXAMPLE_QUESTIONS:ExampleQuestions =[ |
13 | 6 | ( |
14 | 7 | "PostgresML", |
15 | 8 | [ |
16 | | -("PostgresML","sample question continued"), |
17 | | -("PostgresML","sample question continued"), |
18 | | -("PostgresML","sample question continued"), |
19 | | -("PostgresML","sample question continued"), |
| 9 | +("How do I","use pgml.transform()?"), |
| 10 | +("Show me","a query to train a model"), |
| 11 | +("What is HNSW","indexing"), |
| 12 | +("Teach me","how to use pgml.embed()"), |
20 | 13 | ], |
21 | 14 | ), |
22 | 15 | ( |
23 | 16 | "PyTorch", |
24 | 17 | [ |
25 | | -("PyTorch","sample question continued"), |
26 | | -("PyTorch","sample question continued"), |
27 | | -("PyTorch","sample question continued"), |
28 | | -("PyTorch","sample question continued"), |
| 18 | +("What are","tensors?"), |
| 19 | +("How do I","train a model?"), |
| 20 | +("Show me","some features of PyTorch"), |
| 21 | +("Explain","how to use an optimizer?"), |
29 | 22 | ], |
30 | 23 | ), |
31 | 24 | ( |
32 | 25 | "Rust", |
33 | 26 | [ |
34 | | -("Rust","sample question continued"), |
35 | | -("Rust","sample question continued"), |
36 | | -("Rust","sample question continued"), |
37 | | -("Rust","sample question continued"), |
| 27 | +("What is","a lifetime?"), |
| 28 | +("How do I","use a for loop?"), |
| 29 | +("Show me","an example of using map"), |
| 30 | +("Explain","the borrow checker"), |
38 | 31 | ], |
39 | 32 | ), |
40 | 33 | ( |
41 | 34 | "PostgreSQL", |
42 | 35 | [ |
43 | | -("PostgreSQL","sample question continued"), |
44 | | -("PostgreSQL","sample question continued"), |
45 | | -("PostgreSQL","sample question continued"), |
46 | | -("PostgreSQL","sample question continued"), |
| 36 | +("How do I","join two tables?"), |
| 37 | +("What is","a GIN index?"), |
| 38 | +("When should I","use an outer join?"), |
| 39 | +("Explain","what relational data is"), |
47 | 40 | ], |
48 | 41 | ), |
49 | 42 | ]; |
|