-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] RAG overview #119590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] RAG overview #119590
Changes from 5 commits
e52188d
da060e9
7b78a82
d1b3362
f9d9e5f
6045d61
ca54e5b
2042bd2
256ade8
5049a29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
leemthompo marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,77 @@ | ||||||
[rag-elasticsearch] | ||||||
== Retrieval augmented generation | ||||||
|
||||||
.🍿 Prefer a video introduction? | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. very cute |
||||||
*********************** | ||||||
Check out https://www.youtube.com/watch?v=OS4ZefUPAks[this short video] from the Elastic Snackable Series. | ||||||
*********************** | ||||||
|
||||||
Retrieval augmented generation (RAG) is a technique where additional context is retrieved from an external datastore before prompting a language model to generate a response using the retrieved context. | ||||||
This grounds the model with in-context learning. | ||||||
|
||||||
Compared to finetuning or continuous pretraining, RAG can be implemented faster and cheaper, and it has several advantages. | ||||||
leemthompo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
||||||
image::images/search/rag-venn-diagram.svg[RAG sits at the intersection of information retrieval and generative AI, align=center, width=500] | ||||||
|
||||||
RAG sits at the intersection of https://www.elastic.co/what-is/information-retrieval[information retrieval] and generative AI. | ||||||
{es} is an excellent tool for implementing RAG, because it offers various retrieval capabilities, such as full-text search, vector search, and hybrid search. | ||||||
|
||||||
[discrete] | ||||||
[[rag-elasticsearch-advantages]] | ||||||
=== Advantages of RAG | ||||||
|
||||||
RAG has several advantages: | ||||||
|
||||||
* *Improved context:* Enables grounding the language model with additional, up-to-date, and/or private data. | ||||||
leemthompo marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
* *Reduced hallucination:* Helps minimize factual errors by enabling models to cite authoritative sources. | ||||||
* *Cost efficiency:* Requires less maintenance compared to finetuning or continuously pretraining models. | ||||||
|
* *Cost efficiency:* Requires less maintenance compared to finetuning or continuously pretraining models. | |
* *Cost efficiency:* Requires less maintenance compared to fine-tuning or continuously pre-training models. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
full-text search and can be gradually updated to add more advanced and computationally intensive <<semantic-search,semantic search>> capabilities. | |
full-text search, and can be gradually updated to add more advanced and computationally intensive <<semantic-search,semantic search>> capabilities. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "components" is the wrong word here. possibly bad edit:
The system consists of the following components: | |
The system augments search results using the following process: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree! I'll reformulate
Uh oh!
There was an error while loading. Please reload this page.