Skip to content

Commit 5391138

Browse files
committed
refactor(adaptive-rag): clean code
1 parent 985275c commit 5391138

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adaptive-rag/src/main/java/dev/langchain4j/adaptiverag/AdaptiveRag.java

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import lombok.extern.slf4j.Slf4j;
66
import lombok.var;
77
import org.bsc.langgraph4j.CompiledGraph;
8+
import org.bsc.langgraph4j.GraphRepresentation;
89
import org.bsc.langgraph4j.StateGraph;
910
import org.bsc.langgraph4j.state.AgentState;
1011

@@ -290,6 +291,7 @@ public static void main( String[] args ) throws Exception {
290291
var graph = adaptiveRagTest.buildGraph();
291292

292293
var result = graph.stream( mapOf( "question", "What player at the Bears expected to draft first in the 2024 NFL draft?" ) );
294+
// var result = graph.stream( mapOf( "question", "What kind the agent memory do iu know?" ) );
293295

294296
String generation = "";
295297
for( var r : result ) {
@@ -301,6 +303,10 @@ public static void main( String[] args ) throws Exception {
301303

302304
System.out.println( generation );
303305

306+
// generate plantuml script
307+
// var plantUml = graph.getGraph( GraphRepresentation.Type.PLANTUML );
308+
// System.out.println( plantUml );
309+
304310
}
305311

306312
}

0 commit comments

Comments
 (0)