-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 코루틴 의존성 추가 - QueryResponseDto 삭제
- Loading branch information
Showing
7 changed files
with
51 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/kotlin/com/example/CoTEVer/dto/QueryResponseDto.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/example/CoTEVer/dto/QuestionRequestDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.example.CoTEVer.dto | ||
|
||
data class QuestionRequestDto( | ||
val question: String | ||
) |
25 changes: 25 additions & 0 deletions
25
src/main/kotlin/com/example/CoTEVer/dto/QuestionResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.example.CoTEVer.dto | ||
|
||
data class QuestionResponseDto( | ||
val question:String, | ||
val explanation:Map<Int, ApiNode>, | ||
val output:ApiOutput | ||
) | ||
|
||
data class ApiNode( | ||
val sub_question:String, | ||
val sub_answer:String, | ||
val evidence_document:Map<Int, Document> | ||
) | ||
|
||
data class Document( | ||
val url : String, | ||
val title : String, | ||
val document : String, | ||
val score : Float | ||
) | ||
|
||
data class ApiOutput( | ||
val final_explanation:String, | ||
val final_answer:String, | ||
) |
37 changes: 15 additions & 22 deletions
37
src/main/kotlin/com/example/CoTEVer/service/QueryService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters