File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
app/backend/src/test/java/com/microsoft/openai/samples/rag/approaches Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
package com .microsoft .openai .samples .rag .approaches ;
2
2
3
- import com .microsoft .openai .samples .rag .approaches .RAGApproach ;
4
- import com .microsoft .openai .samples .rag .approaches .RAGApproachFactorySpringBootImpl ;
5
- import com .microsoft .openai .samples .rag .approaches .RAGType ;
6
3
import com .microsoft .openai .samples .rag .ask .approaches .RetrieveThenReadApproach ;
7
4
import com .microsoft .openai .samples .rag .ask .approaches .semantickernel .ReadRetrieveReadApproach ;
8
5
import com .microsoft .openai .samples .rag .chat .approaches .ChatReadRetrieveReadApproach ;
@@ -23,25 +20,19 @@ class RAGApproachFactorySpringBootImplTest {
23
20
24
21
@ Test
25
22
void testCreateApproachWithRetrieveThenRead () {
26
-
27
23
RAGApproach approach = ragApproachFactory .createApproach ("rtr" , RAGType .ASK );
28
24
assertInstanceOf (RetrieveThenReadApproach .class , approach );
29
-
30
25
}
31
26
32
27
@ Test
33
28
void testCreateApproachWithChatReadRetrieveRead () {
34
-
35
29
RAGApproach approach = ragApproachFactory .createApproach ("rrr" , RAGType .ASK );
36
-
37
30
assertInstanceOf (ReadRetrieveReadApproach .class , approach );
38
31
}
39
32
40
33
@ Test
41
34
void testChatCreateApproachWithChatReadRetrieveRead () {
42
-
43
35
RAGApproach approach = ragApproachFactory .createApproach ("rrr" , RAGType .CHAT );
44
-
45
36
assertInstanceOf (ChatReadRetrieveReadApproach .class , approach );
46
37
}
47
38
You can’t perform that action at this time.
0 commit comments