Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5e7023

Browse files
Dan rag update (#1549)
1 parenta5472c9 commite5e7023

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

‎pgml-dashboard/src/api/code_editor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn get_readonly_pool() -> PgPool {
2222
.max_connections(1)
2323
.idle_timeout(std::time::Duration::from_millis(60_000))
2424
.max_lifetime(std::time::Duration::from_millis(60_000))
25-
.connect_lazy(&std::env::var("CHATBOT_DATABASE_URL").expect("CHATBOT_DATABASE_URL not set"))
25+
.connect_lazy(&std::env::var("EDITOR_DATABASE_URL").expect("EDITOR_DATABASE_URL not set"))
2626
.expect("could not build lazy database connection")
2727
})
2828
.clone()

‎pgml-dashboard/src/components/layouts/marketing/sections/three_column/card/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<divdata-controller="layouts-marketing-section-three-column-card"class="flex-1">
22
<divclass="d-flex flex-column align-items-center p-3 p-lg-4">
3-
<spanclass="material-symbols-outlined icon-<%- color %> image-top mb-4 text-white"><%- icon %></span>
3+
<spanclass="material-symbols-outlined icon-<%- color %> image-top mb-4 text-white d-flex justify-content-center align-items-center"><%- icon %></span>
44
<h6class="text-center"><%+ title %></h6>
55
<pclass="text-center"><%+ paragraph %></p>
66
</div>

‎pgml-dashboard/src/components/star/star.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ div[data-controller="star"] {
3434
flex-wrap:wrap;
3535
text-align:center;
3636
font-size:0.8rem;
37+
line-height:1rem;
3738
}
3839

3940
@-moz-keyframes spin {100% {-moz-transform:rotate(360deg); } }

‎pgml-dashboard/static/css/modules.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@
8181
@import"../../src/components/tables/serverless_models/serverless_models.scss";
8282
@import"../../src/components/tables/serverless_pricing/serverless_pricing.scss";
8383
@import"../../src/components/tables/small/table/table.scss";
84+
@import"../../src/components/turbo/turbo_frame/turbo_frame.scss";

‎pgml-dashboard/static/js/utilities/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const generateSql = (task, model, userInput) => {
2828
);`;
2929
}elseif(task==="embedded-query"){
3030
return`WITH embedded_query AS (
31-
SELECT pgml.embed ('Alibaba-NLP/gte-base-en-v1.5', '${userInput}')::vector embedding
31+
SELECT pgml.embed('mixedbread-ai/mxbai-embed-large-v1', 'What is Postgres?', '{"prompt": "Represent this sentence for searching relevant passages: "}'::JSONB)::vector embedding
3232
),
3333
context_query AS (
3434
SELECT chunks.chunk FROM chunks
@@ -42,7 +42,7 @@ SELECT
4242
"task": "conversational",
4343
"model": "meta-llama/Meta-Llama-3-8B-Instruct"
4444
}'::jsonb,
45-
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],
45+
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))],
4646
args => '{
4747
"max_new_tokens": 100
4848
}'::jsonb

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp