Skip to content

Added decent questions to the chatbot #1129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 16 additions & 23 deletions pgml-dashboard/src/components/chatbot/mod.rs
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
use pgml_components::component;
use sailfish::TemplateOnce;

// const EXAMPLE_QUESTIONS: [(&'static str, &'static str); 4] = [
// ("Here is a Sample Question", "sample question continued"),
// ("Here is a Sample Question", "sample question continued"),
// ("Here is a Sample Question", "sample question continued"),
// ("Here is a Sample Question", "sample question continued"),
// ];

type ExampleQuestions = [(&'static str, [(&'static str, &'static str); 4]); 4];
const EXAMPLE_QUESTIONS: ExampleQuestions = [
(
"PostgresML",
[
("PostgresML", "sample question continued"),
("PostgresML", "sample question continued"),
("PostgresML", "sample question continued"),
("PostgresML", "sample question continued"),
("How do I", "use pgml.transform()?"),
("Show me", "a query to train a model"),
("What is HNSW", "indexing"),
("Teach me", "how to use pgml.embed()"),
],
),
(
"PyTorch",
[
("PyTorch", "sample question continued"),
("PyTorch", "sample question continued"),
("PyTorch", "sample question continued"),
("PyTorch", "sample question continued"),
("What are", "tensors?"),
("How do I", "train a model?"),
("Show me", "some features of PyTorch"),
("Explain", "how to use an optimizer?"),
],
),
(
"Rust",
[
("Rust", "sample question continued"),
("Rust", "sample question continued"),
("Rust", "sample question continued"),
("Rust", "sample question continued"),
("What is", "a lifetime?"),
("How do I", "use a for loop?"),
("Show me", "an example of using map"),
("Explain", "the borrow checker"),
],
),
(
"PostgreSQL",
[
("PostgreSQL", "sample question continued"),
("PostgreSQL", "sample question continued"),
("PostgreSQL", "sample question continued"),
("PostgreSQL", "sample question continued"),
("How do I", "join two tables?"),
("What is", "a GIN index?"),
("When should I", "use an outer join?"),
("Explain", "what relational data is"),
],
),
];
Expand Down
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