Skip to content

Commit 9c78923

Browse files
committed
update approaches description
1 parent 1519052 commit 9c78923

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/backend/src/main/java/com/microsoft/openai/samples/rag/ask/approaches/semantickernel/JavaSemanticKernelChainsApproach.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import java.util.Set;
2121

2222
/**
23-
* Accomplish the same task as in the Retrieve-then-read approach but using Semantic Kernel framework and Planner goal oriented concept.
23+
* Use Java Semantic Kernel framework with semantic and native functions chaining. It uses an imperative style for AI orchestration through semantic kernel functions chaining.
24+
* InformationFinder.Search native function and RAG.AnswerQuestion semantic function are called sequentially.
2425
*/
2526
@Component
2627
public class JavaSemanticKernelChainsApproach implements RAGApproach<String, RAGResponse> {

app/backend/src/main/java/com/microsoft/openai/samples/rag/ask/approaches/semantickernel/JavaSemanticKernelPlannerApproach.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import java.util.Set;
2121

2222
/**
23-
* Accomplish the same task as in the Retrieve-then-read approach but using Semantic Kernel framework and Planner goal oriented concept.
23+
* Use Java Semantic Kernel framework with built-in Planner for functions orchestration. It uses a declarative style for AI orchestration through the built-in SequentialPlanner.
24+
* SequentialPlanner call OpenAI to generate a plan for answering a question using available skills/plugins: InformationFinder and RAG
2425
*/
2526
@Component
2627
public class JavaSemanticKernelPlannerApproach implements RAGApproach<String, RAGResponse> {

0 commit comments

Comments
 (0)