-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Formatting Issue in RelevancyEvaluator #2502
Comments
What parts of it look strange to you, and what you think has been improved? |
As it uses JDK's Text Blocks syntax, and there's an extra " at the end. Is this the intended format? private static final String DEFAULT_EVALUATION_PROMPT_TEXT = """
Your task is to evaluate if the response for the query is in line with the context information provided.
You have two options to answer. Either YES/ NO.
Answer - YES, if the response for the query is in line with context information otherwise NO.
Query: {query}
Response: {response}
Context: {context}
Answer:
"""; |
Now I can see what the issue is. |
@qnnn Would you be interested in opening a PR to address this? |
@dev-jonghoonpark Yes, I’ll open a PR shortly. |
The formatting of this text looks strange. Is there an issue?
spring-ai/spring-ai-core/src/main/java/org/springframework/ai/evaluation/RelevancyEvaluator.java
Lines 25 to 35 in 4fc6edd
The text was updated successfully, but these errors were encountered: