File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,39 @@ Java implementation of [Adaptive Rag]
4
4
5
5
[ Adaptive Rag ] :https://github.com/langchain-ai/langgraph/blob/main/examples/rag/langgraph_adaptive_rag.ipynb
6
6
7
+ ## Mermaid diagram
8
+
9
+ ``` mermaid
10
+ ---
11
+ title: Adaptive RAG
12
+ ---
13
+ flowchart TD
14
+ start((start))
15
+ stop((stop))
16
+ web_search("web_search")
17
+ retrieve("retrieve")
18
+ grade_documents("grade_documents")
19
+ generate("generate")
20
+ transform_query("transform_query")
21
+ condition1{"check state"}
22
+ condition2{"check state"}
23
+ startcondition{"check state"}
24
+ start --> startcondition
25
+ startcondition -->|web_search| web_search
26
+ startcondition -->|vectorstore| retrieve
27
+ web_search --> generate
28
+ retrieve --> grade_documents
29
+ grade_documents --> condition1
30
+ condition1 -->|transform_query| transform_query
31
+ condition1 -->|generate| generate
32
+ transform_query --> retrieve
33
+ generate --> condition2
34
+ condition2 -->|not supported| generate
35
+ condition2 -->|not useful| transform_query
36
+ condition2 -->|useful| stop
37
+ ```
38
+
39
+ ## PlantUML diagram
7
40
![ diagram] ( AdaptiveRag.png )
8
41
9
42
## Getting Started
You can’t perform that action at this time.
0 commit comments