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

Dan rag update#1549

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chillenberger merged 4 commits intomasterfromdan-rag-update
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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
2 changes: 1 addition & 1 deletionpgml-dashboard/src/api/code_editor.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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()
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
<divdata-controller="layouts-marketing-section-three-column-card"class="flex-1">
<divclass="d-flex flex-column align-items-center p-3 p-lg-4">
<spanclass="material-symbols-outlined icon-<%- color %> image-top mb-4 text-white"><%- icon %></span>
<spanclass="material-symbols-outlined icon-<%- color %> image-top mb-4 text-white d-flex justify-content-center align-items-center"><%- icon %></span>
<h6class="text-center"><%+ title %></h6>
<pclass="text-center"><%+ paragraph %></p>
</div>
Expand Down
1 change: 1 addition & 0 deletionspgml-dashboard/src/components/star/star.scss
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,6 +34,7 @@ div[data-controller="star"] {
flex-wrap:wrap;
text-align:center;
font-size:0.8rem;
line-height:1rem;
}

@-moz-keyframes spin {100% {-moz-transform:rotate(360deg); } }
Expand Down
1 change: 1 addition & 0 deletionspgml-dashboard/static/css/modules.scss
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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_frame/turbo_frame.scss";
4 changes: 2 additions & 2 deletionspgml-dashboard/static/js/utilities/demo.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,7 @@ export const generateSql = (task, model, userInput) => {
);`;
}elseif(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
Expand All@@ -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
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp