From bf8fce995a584f2e2829978498c6219643efd709 Mon Sep 17 00:00:00 2001 From: Mark Pollack Date: Tue, 22 Aug 2023 07:58:48 -0700 Subject: [PATCH] update beanoutput parser prompt --- .../org/springframework/ai/parser/BeanOutputParser.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java b/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java index a35f48bcd..09a198502 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java @@ -51,10 +51,8 @@ public class BeanOutputParser implements OutputParser { String raw = """ Your response should be in JSON format. Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation. - Here is the JSON Schema instance your output must adhere to in the enclosed markdown codeblock: - ```json - {jsonSchema} - ``` + Here is the JSON Schema instance your output must adhere to: + ```{jsonSchema}``` """; PromptTemplate promptTemplate = new PromptTemplate(raw); return promptTemplate.render(Map.of("jsonSchema", this.jsonSchema));