Skip to content

Commit

Permalink
refactor(adaptive-rag): clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jun 20, 2024
1 parent 985275c commit 5391138
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.extern.slf4j.Slf4j;
import lombok.var;
import org.bsc.langgraph4j.CompiledGraph;
import org.bsc.langgraph4j.GraphRepresentation;
import org.bsc.langgraph4j.StateGraph;
import org.bsc.langgraph4j.state.AgentState;

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

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

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

System.out.println( generation );

// generate plantuml script
// var plantUml = graph.getGraph( GraphRepresentation.Type.PLANTUML );
// System.out.println( plantUml );

}

}
Expand Down

0 comments on commit 5391138

Please sign in to comment.