summaryrefslogtreecommitdiff
path: root/docs/rag.md
blob: d573f06cbd73fb2bcb51cf6bec532f82e2844775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Retrieval Augmented Generation

<center>
  <img src="https://qdrant.tech/articles_data/what-is-rag-in-ai/how-rag-works.jpg" alt="image" width="1024" height="auto">
</center>

{pause up}

# The Retriever

<center>
  <img src="https://qdrant.tech/articles_data/what-is-rag-in-ai/how-indexing-works.jpg" alt="image" width="1024" height="auto">
</center>

{pause up}

<center>
  <img src="https://qdrant.tech/articles_data/what-is-rag-in-ai/how-retrieval-works.jpg" alt="image" width="1024" height="auto">
</center>

{pause up}

<center>
  <img src="https://qdrant.tech/articles_data/what-is-rag-in-ai/how-generation-works.png" alt="image" width="1024" height="auto">
</center>

{pause up}

<center>
  <img src="https://qdrant.tech/articles_data/what-is-rag-in-ai/rag-system.jpg" alt="image" width="1024" height="auto">
</center>

{pause up}

<center>
  <img src="https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExZXM0ZGtsZzdldjh5cW54bnN1MTA1dDl3cjV2c2p2NmRiMHpkYmZyYyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/QYLQRR7IF48njkq5an/giphy.gif" alt="image" width="1024" height="auto">

some of the snippets retrieved from the vector database are not always relevant or
of good quality, e.g. the contents pages of a book

{pause .block #solution}
> **Solution?**
>
> {pause focus-at-unpause=solution}
> Add another **LLM** of course!

</center>

{pause up}
{the attributes}

# Reranker

{pause left}

<center>
<img src="https://cdn.sanity.io/images/vr8gru94/production/906c3c0f8fe637840f134dbf966839ef89ac7242-3443x1641.png" alt="image" width="1024" height="auto">
</center>

{pause up}

<center>
<img src="https://cdn.sanity.io/images/vr8gru94/production/4509817116ab72e27bae809c38cb48fbf1578b5d-2760x1420.png" alt="image" width="1024" height="auto">
</center>