From ac7ef1e5869c52593d6750bab5f495dbbaede7b9 Mon Sep 17 00:00:00 2001 From: nastyapash <38438810+nastyapash@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:21:51 +0200 Subject: [PATCH] Updated RAG and 404 pages (#1225) --- qdrant-landing/content/headless/not-found.md | 2 +- .../retrieval-augmented-generation-guide.md | 15 ++ .../themes/qdrant-2024/assets/css/main.scss | 1 + ..._retrieval-augmented-generation-guide.scss | 88 +++++++++++ .../retrieval-augmented-generation-guide.html | 24 +++ .../retrieval-augmented-generation/list.html | 1 + .../static/icons/outline/guidebook-blue.svg | 3 + .../guide-graphic.svg | 145 ++++++++++++++++++ 8 files changed, 278 insertions(+), 1 deletion(-) create mode 100644 qdrant-landing/content/retrieval-augmented-generation/retrieval-augmented-generation-guide.md create mode 100644 qdrant-landing/themes/qdrant-2024/assets/css/partials/_retrieval-augmented-generation-guide.scss create mode 100644 qdrant-landing/themes/qdrant-2024/layouts/partials/retrieval-augmented-generation-guide.html create mode 100644 qdrant-landing/themes/qdrant-2024/static/icons/outline/guidebook-blue.svg create mode 100644 qdrant-landing/themes/qdrant-2024/static/img/retrieval-augmented-generation-evaluation/guide-graphic.svg diff --git a/qdrant-landing/content/headless/not-found.md b/qdrant-landing/content/headless/not-found.md index 44bae2567..419c25f98 100644 --- a/qdrant-landing/content/headless/not-found.md +++ b/qdrant-landing/content/headless/not-found.md @@ -8,7 +8,7 @@ homeButton: link: / text: Go to Home supportButton: - link: https://qdrant.io/discord + link: https://discord.gg/qdrant text: Get Support sitemapExclude: True --- diff --git a/qdrant-landing/content/retrieval-augmented-generation/retrieval-augmented-generation-guide.md b/qdrant-landing/content/retrieval-augmented-generation/retrieval-augmented-generation-guide.md new file mode 100644 index 000000000..960919dab --- /dev/null +++ b/qdrant-landing/content/retrieval-augmented-generation/retrieval-augmented-generation-guide.md @@ -0,0 +1,15 @@ +--- +label: A comprehensive guide +icon: + src: /icons/outline/guidebook-blue.svg + alt: Guidebook +title: Best Practices in RAG Evaluation +description: Learn how to assess, calibrate, and optimize your RAG applications for long-term success. +getGuideButton: + text: Get the Guide + url: "/rag/rag-evaluation-guide/" +image: + src: /img/retrieval-augmented-generation-evaluation/guide-graphic.svg + alt: RAG guide +sitemapExclude: true +--- diff --git a/qdrant-landing/themes/qdrant-2024/assets/css/main.scss b/qdrant-landing/themes/qdrant-2024/assets/css/main.scss index bf470541f..3d5ea771d 100644 --- a/qdrant-landing/themes/qdrant-2024/assets/css/main.scss +++ b/qdrant-landing/themes/qdrant-2024/assets/css/main.scss @@ -62,6 +62,7 @@ @import 'partials/case-study'; @import 'partials/advanced-search-use-cases'; @import 'partials/recommendations-api'; +@import 'partials/retrieval-augmented-generation-guide'; @import 'partials/retrieval-augmented-generation-integrations'; @import 'partials/retrieval-augmented-generation-evaluation'; @import 'partials/data-analysis-anomaly-detection'; diff --git a/qdrant-landing/themes/qdrant-2024/assets/css/partials/_retrieval-augmented-generation-guide.scss b/qdrant-landing/themes/qdrant-2024/assets/css/partials/_retrieval-augmented-generation-guide.scss new file mode 100644 index 000000000..2163ed875 --- /dev/null +++ b/qdrant-landing/themes/qdrant-2024/assets/css/partials/_retrieval-augmented-generation-guide.scss @@ -0,0 +1,88 @@ +@use '../helpers/functions' as *; + +.retrieval-augmented-generation-guide { + position: relative; + padding-top: $spacer * 4; + padding-bottom: $spacer * 4; + background-color: $neutral-10; + overflow: hidden; + + &__content { + position: relative; + z-index: 1; + } + + &__tag { + display: inline-flex; + align-items: center; + gap: $spacer * 0.5; + margin-bottom: $spacer * 2; + padding: calc($spacer / 4) $spacer; + border-radius: $spacer; + background-color: $neutral-20; + + img { + width: $spacer; + height: $spacer; + } + + p { + margin-bottom: 0; + font-size: pxToRem(14); + line-height: pxToRem(21); + font-weight: 400; + color: $neutral-90; + } + } + + &__title { + margin-bottom: $spacer * 2; + font-size: $spacer * 2; + line-height: pxToRem(38); + color: $neutral-98; + } + + &__description { + margin-bottom: $spacer * 2; + font-size: pxToRem(18); + line-height: pxToRem(27); + color: $neutral-70; + } + + &__preview { + img { + display: block; + width: 100%; + max-width: pxToRem(540); + margin: $spacer * 2.5 auto 0 auto; + } + } + + &__overlay-bottom { + left: -$spacer * 1.5; + bottom: -$spacer * 1.5; + } + + @include media-breakpoint-up(xl) { + padding-top: $spacer * 7.5; + padding-bottom: $spacer * 7.5; + + &__title { + max-width: pxToRem(445); + font-size: $spacer * 3; + line-height: pxToRem(58); + } + + &__description { + max-width: pxToRem(445); + font-size: pxToRem(20); + line-height: pxToRem(30); + } + + &__preview { + img { + margin: 0 0 0 auto; + } + } + } +} diff --git a/qdrant-landing/themes/qdrant-2024/layouts/partials/retrieval-augmented-generation-guide.html b/qdrant-landing/themes/qdrant-2024/layouts/partials/retrieval-augmented-generation-guide.html new file mode 100644 index 000000000..31f6ca079 --- /dev/null +++ b/qdrant-landing/themes/qdrant-2024/layouts/partials/retrieval-augmented-generation-guide.html @@ -0,0 +1,24 @@ +{{ with (.Site.GetPage "/retrieval-augmented-generation/retrieval-augmented-generation-guide") }} +
+
+
+
+
+ {{ .Params.icon.alt }} +

{{ .Params.label }}

+
+

{{ .Params.title }}

+

{{ .Params.description }}

+ + {{ .Params.getGuideButton.text }} + +
+ +
+ {{ .Params.image.alt }} +
+
+
+ {{ partial "top-and-bottom-overlay" (dict "context" . "class" "retrieval-augmented-generation-guide") }} +
+{{ end }} diff --git a/qdrant-landing/themes/qdrant-2024/layouts/retrieval-augmented-generation/list.html b/qdrant-landing/themes/qdrant-2024/layouts/retrieval-augmented-generation/list.html index 46730d3dc..3caab5d12 100644 --- a/qdrant-landing/themes/qdrant-2024/layouts/retrieval-augmented-generation/list.html +++ b/qdrant-landing/themes/qdrant-2024/layouts/retrieval-augmented-generation/list.html @@ -12,6 +12,7 @@ {{ partial "use-cases-vector-cases" . }} {{ end }} + {{ partial "retrieval-augmented-generation-guide" . }}