File tree 1 file changed +6
-0
lines changed
adaptive-rag/src/main/java/dev/langchain4j/adaptiverag
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 5
5
import lombok .extern .slf4j .Slf4j ;
6
6
import lombok .var ;
7
7
import org .bsc .langgraph4j .CompiledGraph ;
8
+ import org .bsc .langgraph4j .GraphRepresentation ;
8
9
import org .bsc .langgraph4j .StateGraph ;
9
10
import org .bsc .langgraph4j .state .AgentState ;
10
11
@@ -290,6 +291,7 @@ public static void main( String[] args ) throws Exception {
290
291
var graph = adaptiveRagTest .buildGraph ();
291
292
292
293
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?" ) );
293
295
294
296
String generation = "" ;
295
297
for ( var r : result ) {
@@ -301,6 +303,10 @@ public static void main( String[] args ) throws Exception {
301
303
302
304
System .out .println ( generation );
303
305
306
+ // generate plantuml script
307
+ // var plantUml = graph.getGraph( GraphRepresentation.Type.PLANTUML );
308
+ // System.out.println( plantUml );
309
+
304
310
}
305
311
306
312
}
You can’t perform that action at this time.
0 commit comments