Skip to content

Commit

Permalink
Updated RAG and 404 pages (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastyapash authored Oct 8, 2024
1 parent aaf25ea commit ac7ef1e
Show file tree
Hide file tree
Showing 8 changed files with 278 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qdrant-landing/content/headless/not-found.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Original file line number Diff line number Diff line change
@@ -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
---
1 change: 1 addition & 0 deletions qdrant-landing/themes/qdrant-2024/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ with (.Site.GetPage "/retrieval-augmented-generation/retrieval-augmented-generation-guide") }}
<section class="retrieval-augmented-generation-guide">
<div class="container">
<div class="row align-items-lg-center">
<div class="retrieval-augmented-generation-guide__content col-12 col-lg-6">
<div class="retrieval-augmented-generation-guide__tag">
<img src="{{ .Params.icon.src }}" alt="{{ .Params.icon.alt }}">
<p>{{ .Params.label }}</p>
</div>
<h2 class="retrieval-augmented-generation-guide__title">{{ .Params.title }}</h2>
<p class="retrieval-augmented-generation-guide__description">{{ .Params.description }}</p>
<a href="{{ .Params.getGuideButton.url }}" class="button button_contained button_sm">
{{ .Params.getGuideButton.text }}
</a>
</div>

<div class="retrieval-augmented-generation-guide__preview col-12 col-lg-6">
<img src="{{ .Params.image.src }}" alt="{{ .Params.image.alt }}" />
</div>
</div>
</div>
{{ partial "top-and-bottom-overlay" (dict "context" . "class" "retrieval-augmented-generation-guide") }}
</section>
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{{ partial "use-cases-vector-cases" . }}
{{ end }}

{{ partial "retrieval-augmented-generation-guide" . }}

<!-- {{ with (.Site.GetPage "/headless/get-started-small-rocket") }}
{{ partial "get-started-small" (dict "context" . "class" "use-cases-vector-get-started") }}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ac7ef1e

Please sign in to comment.