Skip to content

Updated the site search to use mixed bread as the embeddings model #1493

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all 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
10 changes: 5 additions & 5 deletions pgml-dashboard/src/utils/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ pub struct SiteSearch {
impl SiteSearch {
pub async fn new() -> anyhow::Result<Self> {
let collection = pgml::Collection::new(
env!("CMS_HASH"),
&format!("{}-1", env!("CMS_HASH")),
Some(
std::env::var("SITE_SEARCH_DATABASE_URL")
.context("Please set the `SITE_SEARCH_DATABASE_URL` environment variable")?,
Expand All @@ -1267,7 +1267,7 @@ impl SiteSearch {
"configuration": "english"
},
"semantic_search": {
"model": "Alibaba-NLP/gte-base-en-v1.5",
"model": "mixedbread-ai/mxbai-embed-large-v1",
}
},
"contents": {
Expand All @@ -1278,7 +1278,7 @@ impl SiteSearch {
"configuration": "english"
},
"semantic_search": {
"model": "Alibaba-NLP/gte-base-en-v1.5",
"model": "mixedbread-ai/mxbai-embed-large-v1",
}
}
})
Expand Down Expand Up @@ -1319,14 +1319,14 @@ impl SiteSearch {
"title": {
"query": query,
"parameters": {
"instruction": "Represent the Wikipedia question for retrieving supporting documents: "
"prompt": "Represent this sentence for searching relevant passages: "
},
"boost": 10.0
},
"contents": {
"query": query,
"parameters": {
"instruction": "Represent the Wikipedia question for retrieving supporting documents: "
"prompt": "Represent this sentence for searching relevant passages: "
},
"boost": 1.0
}
Expand Down
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