Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public class CustomerSupportAssistant {

this.chatClient = builder
.defaultSystem("""
You are a customer chat support agent of an airline named "Funnair".", Respond in a friendly,
You are a customer chat support agent of an airline named "Funnair". Respond in a friendly,
helpful, and joyful manner.

Before providing information about a booking or cancelling a booking, you MUST always
Expand Down Expand Up @@ -524,7 +524,7 @@ Example usage:

[source,java]
----
javaCopySimpleLoggerAdvisor customLogger = new SimpleLoggerAdvisor(
SimpleLoggerAdvisor customLogger = new SimpleLoggerAdvisor(
request -> "Custom request: " + request.userText,
response -> "Custom response: " + response.getResult()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ class MyTextReader {
MyTextReader(@Value("classpath:text-source.txt") Resource resource) {
this.resource = resource;
}

List<Document> loadText() {
TextReader textReader = new TextReader(this.resource);
textReader.getCustomMetadata().put("filename", "text-source.txt");
Expand Down Expand Up @@ -447,7 +448,7 @@ dependencies {
@Component
public class MyPagePdfDocumentReader {

List<Document> getDocsFromPdfwithCatalog() {
List<Document> getDocsFromPdfWithCatalog() {

ParagraphPdfDocumentReader pdfReader = new ParagraphPdfDocumentReader("classpath:/sample1.pdf",
PdfDocumentReaderConfig.builder()
Expand All @@ -458,7 +459,7 @@ public class MyPagePdfDocumentReader {
.withPagesPerDocument(1)
.build());

return pdfReader.read();
return pdfReader.read();
}
}
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public class ImageGeneration implements ModelResult<Image> {

private Image image;

@Override
@Override
public Image getOutput() {...}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Spring AI interface for evaluating responses is `Evaluator`, defined as:
----
@FunctionalInterface
public interface Evaluator {
EvaluationResponse evaluate(EvaluationRequest evaluationRequest)
EvaluationResponse evaluate(EvaluationRequest evaluationRequest);
}
----

Expand Down