Skip to content

Commit ae020a3

Browse files
authored
search blog post (#976)
1 parent f8a1c4a commit ae020a3

File tree

6 files changed

+480
-1
lines changed

6 files changed

+480
-1
lines changed

pgml-dashboard/content/blog/how-to-improve-search-results-with-machine-learning.md

Lines changed: 471 additions & 0 deletions
Large diffs are not rendered by default.

pgml-dashboard/src/api/docs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ async fn blog_handler<'a>(path: PathBuf, cluster: &Cluster) -> Result<ResponseOk
8080
cluster,
8181
&path,
8282
vec![
83+
NavLink::new("How-to Improve Search Results with Machine Learning")
84+
.href("/blog/how-to-improve-search-results-with-machine-learning"),
8385
NavLink::new("pgml-chat: A command-line tool for deploying low-latency knowledge-based chatbots: Part I")
8486
.href("/blog/pgml-chat-a-command-line-tool-for-deploying-low-latency-knowledge-based-chatbots-part-I"),
8587
NavLink::new("Announcing support for AWS us-east-1 region")

pgml-dashboard/src/components/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
mod component;
55
pub(crate) use component::{component, Component};
66

7+
78
// src/components/breadcrumbs
89
pub mod breadcrumbs;
910
pub use breadcrumbs::Breadcrumbs;

pgml-dashboard/src/utils/markdown.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
278278
"pgml.norm_l2",
279279
"CONCURRENTLY",
280280
"ON\n",
281+
"VALUES",
282+
"@@",
283+
"=>",
284+
"GENERATED ALWAYS AS",
285+
"STORED",
281286
"IF NOT EXISTS",
282287
"pgml.train",
283288
"pgml.predict",
Loading

pgml-dashboard/templates/layout/nav/top.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</li> -->
2424
<% } %>
2525
<li class="nav-item d-flex align-items-center">
26-
<a class="nav-link p-0" href="/blog/announcing-support-for-aws-us-east-1-region">Blog</a>
26+
<a class="nav-link p-0" href="/blog/how-to-improve-search-results-with-machine-learning">Blog</a>
2727
</li>
2828
</ul>
2929

0 commit comments

Comments
 (0)