You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/ask/approaches/semantickernel/JavaSemanticKernelChainsApproach.java
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/ask/approaches/semantickernel/JavaSemanticKernelPlannerApproach.java
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/chat/approaches/semantickernel/JavaSemanticKernelChainsChatApproach.java
* Simple chat-read-retrieve-read java implementation, using the Cognitive Search and OpenAI APIs directly.
31
-
* It uses the ChatGPT API to turn the user question into a good search query.
32
-
* It queries Azure Cognitive Search for search results for that query (optionally using the vector embeddings for that query).
33
-
* It then combines the search results and original user question, and asks ChatGPT API to answer the question based on the sources. It includes the last 4K of message history as well (or however many tokens are allowed by the deployed model).
28
+
* Use Java Semantic Kernel framework with semantic and native functions chaining. It uses an
29
+
* imperative style for AI orchestration through semantic kernel functions chaining.
30
+
* InformationFinder.SearchFromConversation native function and RAG.AnswerConversation semantic function are called
31
+
* sequentially. Several cognitive search retrieval options are available: Text, Vector, Hybrid.
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/chat/approaches/semantickernel/JavaSemanticKernelWithMemoryChatApproach.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
/**
36
36
* Accomplish the same task as in the PlainJavaAskApproach approach but using Semantic Kernel framework:
37
37
* 1. Memory abstraction is used for vector search capability. It uses Azure Cognitive Search as memory store.
38
-
* 2. Semantic function has been defined to ask question using sources from memory search results
38
+
* 2. Semantic functions have been defined to ask question using sources from memory search results
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/retrieval/semantickernel/CognitiveSearchPlugin.java
0 commit comments