Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docu: added diagrams and examples for RAG (#619)
  • Loading branch information
langchain4j committed Feb 9, 2024
1 parent b6ff373 commit 8dc5af6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/docs/tutorials/rag.md
Expand Up @@ -2,8 +2,23 @@
sidebar_position: 15
---

# Chat with Documents (RAG)
# RAG (Retrieval-Augmented Generation)

- [Chat with Documents](https://github.com/langchain4j/langchain4j-examples/blob/main/other-examples/src/main/java/ChatWithDocumentsExamples.java)
## Ingestion
[![](/img/rag-ingestion.png)](/docs/tutorials/rag)

Coming soon
## Retrieval
[![](/img/rag-retrieval.png)](/docs/tutorials/rag)

## Advanced Retrieval
[![](/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)
- [Advanced RAG: Re-Ranking](https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_04_Advanced_RAG_with_ReRanking.java)
- [Advanced RAG: Including Metadata](https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_05_Advanced_RAG_with_Metadata.java)
- [RAG + Tools](https://github.com/langchain4j/langchain4j-examples/blob/main/spring-boot-example/src/test/java/dev/example/CustomerSupportApplicationTest.java)
- [Loading Documents](https://github.com/langchain4j/langchain4j-examples/blob/main/other-examples/src/main/java/DocumentLoaderExamples.java)
- [ConversationalRetrievalChain](https://github.com/langchain4j/langchain4j-examples/blob/main/other-examples/src/main/java/ChatWithDocumentsExamples.java)
Binary file added docs/static/img/rag-ingestion.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/rag-retrieval.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8dc5af6

Please sign in to comment.