|
|
@@ -1,5 +1,6 @@
|
|
|
package es.uv.saic.service;
|
|
|
|
|
|
+import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import es.uv.saic.extractor.ExtractionRequest;
|
|
|
import es.uv.saic.extractor.docling.DoclingTableExtractor;
|
|
|
import es.uv.saic.extractor.HtmlToCsvExtractor;
|
|
|
@@ -23,12 +24,12 @@ public class EnhancementService {
|
|
|
private final GroqProxy groqProxy;
|
|
|
private final ExtractionResponseMapper extractionResponseMapper;
|
|
|
|
|
|
- public ExtractionResponse calculateScoreAndProduceCommentsWithSingleCall(ExtractionRequest extractionRequest, String provider, String model) {
|
|
|
+ public ExtractionResponse calculateScoreAndProduceCommentsWithSingleCall(ExtractionRequest extractionRequest, String provider, String model) throws JsonProcessingException {
|
|
|
String asCsv = extractCsv(extractionRequest);
|
|
|
return calculateScoreAndProduceCommentsFromCsv(asCsv, provider, model);
|
|
|
}
|
|
|
|
|
|
- public ExtractionResponse calculateScoreAndProduceCommentsFromCsv(String asCsv, String provider, String model) {
|
|
|
+ public ExtractionResponse calculateScoreAndProduceCommentsFromCsv(String asCsv, String provider, String model) throws JsonProcessingException {
|
|
|
if (StringUtils.isBlank(asCsv)) {
|
|
|
throw new IllegalArgumentException("CSV content is empty");
|
|
|
}
|