Skip to content

Commit 6f535c2

Browse files
authored
Updated docs and docs landing page (postgresml#1575)
1 parent 52c9c81 commit 6f535c2

File tree

5 files changed

+18
-23
lines changed

5 files changed

+18
-23
lines changed

pgml-cms/docs/open-source/korvus/example-apps/rag-with-openai.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: An example application performing RAG with Korvus and OpenAI.
3+
---
4+
15
# Rag with OpenAI
26

37
This example shows how to use third-party LLM providers like OpenAI to perform RAG with Korvus.

pgml-cms/docs/open-source/korvus/example-apps/semantic-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
description: >-
3+
An example application built with Korvus to perform Semantic Search.
4+
---
5+
16
# Semantic Search
27

38
This example demonstrates using the `korvus` SDK to create a collection, add documents, build a pipeline for vector search and make a sample query.

pgml-dashboard/src/api/cms.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,19 +563,19 @@ impl Collection {
563563
.href(&url.to_string_lossy());
564564
links.push(parent);
565565
}
566-
_ => error!("unhandled link child: {node:?}"),
566+
_ => warn!("unhandled link child: {node:?}"),
567567
}
568568
}
569569
}
570-
_ => error!("unhandled paragraph child: {node:?}"),
570+
_ => warn!("unhandled paragraph child: {node:?}"),
571571
}
572572
}
573573
}
574-
_ => error!("unhandled list_item child: {node:?}"),
574+
_ => warn!("unhandled list_item child: {node:?}"),
575575
}
576576
}
577577
}
578-
_ => error!("unhandled list child: {node:?}"),
578+
_ => warn!("unhandled list child: {node:?}"),
579579
}
580580
}
581581
Ok(links)

pgml-dashboard/src/components/pages/docs/landing_page/mod.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy_static! {
2020
("collections", "overview_key"),
2121
("pipelines", "climate_mini_split"),
2222
("semantic search", "book"),
23-
("semantic search using instructor model", "book"),
23+
("rag with openai", "book"),
2424
("postgresml is 8-40x faster than python http microservices", "fit_page"),
2525
("scaling to 1 million requests per second", "bolt"),
2626
("mindsdb vs postgresml", "arrow_split"),
@@ -42,7 +42,7 @@ lazy_static! {
4242
.into_iter()
4343
.map(|s| s.to_owned())
4444
.collect();
45-
static ref TUTORIAL_TARGETS: Vec<String> = Vec::from(["semantic search"])
45+
static ref TUTORIAL_TARGETS: Vec<String> = Vec::from(["semantic search", "rag with openai"])
4646
.into_iter()
4747
.map(|s| s.to_owned())
4848
.collect();
@@ -63,7 +63,6 @@ lazy_static! {
6363
pub struct LandingPage {
6464
pgml_ai: Vec<DocCard>,
6565
pgml_ml: Vec<DocCard>,
66-
benchmarks: Vec<DocCard>,
6766
korvus_overview: Vec<DocCard>,
6867
korvus_tutorials: Vec<DocCard>,
6968
feature_banner: FeatureBanner,
@@ -80,14 +79,12 @@ impl LandingPage {
8079
pub async fn parse_sections(mut self, links: Vec<IndexLink>) -> Self {
8180
let mut children: Vec<IndexLink> = links.clone();
8281

83-
let mut benchmarks_folder: Vec<IndexLink> = Vec::new();
8482
let mut extension_folder: Vec<IndexLink> = Vec::new();
8583
let mut korvus_folder: Vec<IndexLink> = Vec::new();
8684
while !children.is_empty() {
8785
let link = children.pop().unwrap();
8886

8987
match link.title.to_lowercase().as_ref() {
90-
"benchmarks" => benchmarks_folder = link.children,
9188
"pgml" => extension_folder = link.children,
9289
"korvus" => korvus_folder = link.children,
9390
_ => {
@@ -121,17 +118,11 @@ impl LandingPage {
121118
out
122119
};
123120

124-
let benchmarks = find_targets(benchmarks_folder, &BENCHMARKS_TARGETS);
125121
let korvus_overview = find_targets(korvus_folder.clone(), &OVERVIEW_TARGETS);
126122
let korvus_tutorials = find_targets(korvus_folder, &TUTORIAL_TARGETS);
127123
let pgml_ai = find_targets(extension_folder.clone(), &AI_TARGETS);
128124
let pgml_ml = find_targets(extension_folder, &ML_TARGETS);
129125

130-
for item in benchmarks {
131-
let card = DocCard::from_index_link(&item).await;
132-
self.benchmarks.push(card);
133-
}
134-
135126
for item in korvus_overview {
136127
let card = DocCard::from_index_link(&item).await;
137128
self.korvus_overview.push(card);

pgml-dashboard/src/components/pages/docs/landing_page/template.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1 class="text-center">PostgresML</br><span class="text-gradient-green">Documen
5555

5656
<div class="mt-5">
5757
<%- section_title(
58-
"<h2>SQL Extension</h2>",
58+
"<h2>PGML SQL Extension</h2>",
5959
"The SQL extension provides end-to-end ML & AI functionality from inference to deployment. It can be used in any combination to implement bespoke models across use cases.") %>
6060

6161
<div class="d-flex flex-column gap-4_5">
@@ -76,13 +76,13 @@ <h1 class="text-center">PostgresML</br><span class="text-gradient-green">Documen
7676
<div class="d-flex flex-column gap-3 align-items-center">
7777
<%- section_title(
7878
r#"<div class="d-flex gap-2">
79-
<h2>Client SDK</h2>
79+
<h2>Korvus SDK</h2>
8080
<div class="language-logos p-2 d-flex gap-2 h-100 rounded-2">
8181
<img width="28px" height="28px" src="/dashboard/static/images/logos/javascript.png"/>
8282
<img width="28px" height="28px" src="/dashboard/static/images/logos/python.png"/>
8383
</div>
8484
</div>"#,
85-
"Our Client SDK implements the best practices to streamline development of common ML/AI use cases in JavaScript or Python.")%>
85+
"Korvus implements the best practices to streamline development of common ML/AI use cases in JavaScript, Python, C and Rust.")%>
8686
</div>
8787
<div class="d-flex flex-column gap-4_5">
8888
<div class="d-flex flex-column">
@@ -96,11 +96,6 @@ <h2>Client SDK</h2>
9696
</div>
9797
</div>
9898

99-
<div class="mt-5">
100-
<%- section_title("<h2>Benchmarks</h2>", "")%>
101-
<%- section_links(benchmarks)%>
102-
</div>
103-
10499
<div class="container mt-5">
105100
<div class="row d-flex flex-column flex-xl-row" style="min-height: 39rem;">
106101
<div class="align-items-center d-flex" style="flex: 1">

0 commit comments

Comments
 (0)