@@ -1252,7 +1252,7 @@ pub struct SiteSearch {
1252
1252
impl SiteSearch {
1253
1253
pub async fn new ( ) -> anyhow:: Result < Self > {
1254
1254
let collection = pgml:: Collection :: new (
1255
- env ! ( "CMS_HASH" ) ,
1255
+ & format ! ( "{}-1" , env!( "CMS_HASH" ) ) ,
1256
1256
Some (
1257
1257
std:: env:: var ( "SITE_SEARCH_DATABASE_URL" )
1258
1258
. context ( "Please set the `SITE_SEARCH_DATABASE_URL` environment variable" ) ?,
@@ -1267,7 +1267,7 @@ impl SiteSearch {
1267
1267
"configuration" : "english"
1268
1268
} ,
1269
1269
"semantic_search" : {
1270
- "model" : "Alibaba-NLP/gte-base-en -v1.5 " ,
1270
+ "model" : "mixedbread-ai/mxbai-embed-large -v1" ,
1271
1271
}
1272
1272
} ,
1273
1273
"contents" : {
@@ -1278,7 +1278,7 @@ impl SiteSearch {
1278
1278
"configuration" : "english"
1279
1279
} ,
1280
1280
"semantic_search" : {
1281
- "model" : "Alibaba-NLP/gte-base-en -v1.5 " ,
1281
+ "model" : "mixedbread-ai/mxbai-embed-large -v1" ,
1282
1282
}
1283
1283
}
1284
1284
} )
@@ -1319,14 +1319,14 @@ impl SiteSearch {
1319
1319
"title" : {
1320
1320
"query" : query,
1321
1321
"parameters" : {
1322
- "instruction " : "Represent the Wikipedia question for retrieving supporting documents : "
1322
+ "prompt " : "Represent this sentence for searching relevant passages : "
1323
1323
} ,
1324
1324
"boost" : 10.0
1325
1325
} ,
1326
1326
"contents" : {
1327
1327
"query" : query,
1328
1328
"parameters" : {
1329
- "instruction " : "Represent the Wikipedia question for retrieving supporting documents : "
1329
+ "prompt " : "Represent this sentence for searching relevant passages : "
1330
1330
} ,
1331
1331
"boost" : 1.0
1332
1332
}
0 commit comments