Skip to content

Commit 36339d4

Browse files
authored
Added decent questions to the chatbot (#1129)
1 parent fb5b502 commit 36339d4

File tree

1 file changed

+16
-23
lines changed
  • pgml-dashboard/src/components/chatbot

1 file changed

+16
-23
lines changed

pgml-dashboard/src/components/chatbot/mod.rs

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
11
use pgml_components::component;
22
use sailfish::TemplateOnce;
33

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-
114
type ExampleQuestions = [(&'static str, [(&'static str, &'static str); 4]); 4];
125
const EXAMPLE_QUESTIONS: ExampleQuestions = [
136
(
147
"PostgresML",
158
[
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()"),
2013
],
2114
),
2215
(
2316
"PyTorch",
2417
[
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?"),
2922
],
3023
),
3124
(
3225
"Rust",
3326
[
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"),
3831
],
3932
),
4033
(
4134
"PostgreSQL",
4235
[
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"),
4740
],
4841
),
4942
];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy