Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docu: added diagrams for RAG
  • Loading branch information
langchain4j committed Feb 9, 2024
1 parent 8dc5af6 commit 8421e56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/tutorials/rag.md
Expand Up @@ -4,16 +4,23 @@ sidebar_position: 15

# RAG (Retrieval-Augmented Generation)

RAG can be split in 2 parst: ingestion and retrieval.

## Ingestion

[![](/img/rag-ingestion.png)](/docs/tutorials/rag)

## Retrieval

[![](/img/rag-retrieval.png)](/docs/tutorials/rag)

## Advanced Retrieval

More [info here](https://github.com/langchain4j/langchain4j/pull/538).
[![](/img/advanced-rag.png)](/docs/tutorials/rag)

## Examples

- [Naive (simple) RAG](https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_01_Naive_RAG.java)
- [Advanced RAG: Query Compression](https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_02_Advanced_RAG_with_Query_Compression.java)
- [Advanced RAG: Query Routing](https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_03_Advanced_RAG_with_Query_Routing.java)
Expand Down

0 comments on commit 8421e56

Please sign in to comment.