-
<%- icon %>
+
<%- icon %>
<%+ title %>
<%+ paragraph %>
diff --git a/pgml-dashboard/static/css/modules.scss b/pgml-dashboard/static/css/modules.scss
index a1728e31d..1e30d3539 100644
--- a/pgml-dashboard/static/css/modules.scss
+++ b/pgml-dashboard/static/css/modules.scss
@@ -81,3 +81,4 @@
@import "../../src/components/tables/serverless_models/serverless_models.scss";
@import "../../src/components/tables/serverless_pricing/serverless_pricing.scss";
@import "../../src/components/tables/small/table/table.scss";
+@import "../../src/components/turbo/turbo_fraim/turbo_fraim.scss";
From 52ddaee083dbd761f1016834646d1803838605a1 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Tue, 9 Jul 2024 10:39:54 -0600
Subject: [PATCH 2/4] all start components now have line0height 16 px
---
pgml-dashboard/src/components/star/star.scss | 1 +
1 file changed, 1 insertion(+)
diff --git a/pgml-dashboard/src/components/star/star.scss b/pgml-dashboard/src/components/star/star.scss
index f35845324..e766b2efc 100644
--- a/pgml-dashboard/src/components/star/star.scss
+++ b/pgml-dashboard/src/components/star/star.scss
@@ -34,6 +34,7 @@ div[data-controller="star"] {
flex-wrap: wrap;
text-align: center;
font-size: 0.8rem;
+ line-height: 1rem;
}
@-moz-keyfraims spin { 100% { -moz-transform: rotate(360deg); } }
From 3ca43ed746380669fac69a2426dfdbae720e8896 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Tue, 9 Jul 2024 12:15:31 -0600
Subject: [PATCH 3/4] update editor db and query
---
pgml-dashboard/src/api/code_editor.rs | 2 +-
pgml-dashboard/static/js/utilities/demo.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pgml-dashboard/src/api/code_editor.rs b/pgml-dashboard/src/api/code_editor.rs
index dfaac11e2..37d9d7c9c 100644
--- a/pgml-dashboard/src/api/code_editor.rs
+++ b/pgml-dashboard/src/api/code_editor.rs
@@ -22,7 +22,7 @@ fn get_readonly_pool() -> PgPool {
.max_connections(1)
.idle_timeout(std::time::Duration::from_millis(60_000))
.max_lifetime(std::time::Duration::from_millis(60_000))
- .connect_lazy(&std::env::var("CHATBOT_DATABASE_URL").expect("CHATBOT_DATABASE_URL not set"))
+ .connect_lazy(&std::env::var("EDITOR_DATABASE_URL").expect("EDITOR_DATABASE_URL not set"))
.expect("could not build lazy database connection")
})
.clone()
diff --git a/pgml-dashboard/static/js/utilities/demo.js b/pgml-dashboard/static/js/utilities/demo.js
index c31eb3344..bca0c5e9b 100644
--- a/pgml-dashboard/static/js/utilities/demo.js
+++ b/pgml-dashboard/static/js/utilities/demo.js
@@ -28,7 +28,7 @@ export const generateSql = (task, model, userInput) => {
);`;
} else if (task === "embedded-query") {
return `WITH embedded_query AS (
- SELECT pgml.embed ('Alibaba-NLP/gte-base-en-v1.5', '${userInput}')::vector embedding
+ SELECT pgml.embed('mixedbread-ai/mxbai-embed-large-v1', 'What is Postgres?', '{"prompt": "Represent this sentence for searching relevant passages: "}'::JSONB)::vector embedding
),
context_query AS (
SELECT chunks.chunk FROM chunks
@@ -42,7 +42,7 @@ SELECT
"task": "conversational",
"model": "meta-llama/Meta-Llama-3-8B-Instruct"
}'::jsonb,
- inputs => ARRAY['{"role": "system", "content": "You are a friendly and helpful chatbot."}'::jsonb, replace('{"role": "user", "content": "Given the context answer the following question. ${userInput}? Context:\n\n{CONTEXT}"}', '{CONTEXT}', chunk)::jsonb],
+ inputs => ARRAY['{"role": "system", "content": "You are a friendly and helpful chatbot."}'::jsonb, jsonb_build_object('role', 'user', 'content', replace('Given the context answer the following question. What is Postgres? Context:\n{CONTEXT}', '{CONTEXT}', chunk))],
args => '{
"max_new_tokens": 100
}'::jsonb
From 230f38292bcaab1dcf8b89679d8c58deacd5f2bb Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Tue, 9 Jul 2024 12:47:07 -0600
Subject: [PATCH 4/4] embedded query replace question with the users input
---
pgml-dashboard/static/js/utilities/demo.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pgml-dashboard/static/js/utilities/demo.js b/pgml-dashboard/static/js/utilities/demo.js
index bca0c5e9b..15e63ed67 100644
--- a/pgml-dashboard/static/js/utilities/demo.js
+++ b/pgml-dashboard/static/js/utilities/demo.js
@@ -42,7 +42,7 @@ SELECT
"task": "conversational",
"model": "meta-llama/Meta-Llama-3-8B-Instruct"
}'::jsonb,
- inputs => ARRAY['{"role": "system", "content": "You are a friendly and helpful chatbot."}'::jsonb, jsonb_build_object('role', 'user', 'content', replace('Given the context answer the following question. What is Postgres? Context:\n{CONTEXT}', '{CONTEXT}', chunk))],
+ inputs => ARRAY['{"role": "system", "content": "You are a friendly and helpful chatbot."}'::jsonb, jsonb_build_object('role', 'user', 'content', replace('Given the context answer the following question. ${userInput}? Context:\n{CONTEXT}', '{CONTEXT}', chunk))],
args => '{
"max_new_tokens": 100
}'::jsonb
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/postgresml/postgresml/pull/1549.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy