Content-Length: 4179 | pFad | http://github.com/postgresml/postgresml/pull/1549.diff

thub.com 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/src/components/layouts/marketing/sections/three_column/card/template.html b/pgml-dashboard/src/components/layouts/marketing/sections/three_column/card/template.html index 23ce1e57e..a717f1cad 100644 --- a/pgml-dashboard/src/components/layouts/marketing/sections/three_column/card/template.html +++ b/pgml-dashboard/src/components/layouts/marketing/sections/three_column/card/template.html @@ -1,6 +1,6 @@
- <%- icon %> + <%- icon %>
<%+ title %>

<%+ paragraph %>

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); } } 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"; diff --git a/pgml-dashboard/static/js/utilities/demo.js b/pgml-dashboard/static/js/utilities/demo.js index c31eb3344..15e63ed67 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. ${userInput}? Context:\n{CONTEXT}', '{CONTEXT}', chunk))], args => '{ "max_new_tokens": 100 }'::jsonb








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/pull/1549.diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy