From d82cad163f3b7e8e95a676d75de5a8b56300f22f Mon Sep 17 00:00:00 2001 From: SilasMarvin <19626586+SilasMarvin@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:32:04 -0700 Subject: [PATCH] Added decent questions to the chatbot --- pgml-dashboard/src/components/chatbot/mod.rs | 39 ++++++++------------ 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/pgml-dashboard/src/components/chatbot/mod.rs b/pgml-dashboard/src/components/chatbot/mod.rs index c0ad3ae25..b237426bf 100644 --- a/pgml-dashboard/src/components/chatbot/mod.rs +++ b/pgml-dashboard/src/components/chatbot/mod.rs @@ -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"), ], ), ]; 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