Skip to content
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

Update review triage sample #584

Merged
merged 2 commits into from
May 15, 2024
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 @@ -21,7 +21,7 @@ public interface TriageService {
- "J'adore votre banque", this is a 'POSITIVE' review
- "I hate your bank, you are the worst!", this is a 'NEGATIVE' review

Answer with a JSON document containing:
Your answer needs to contain the following information:
- the 'evaluation' key set to 'POSITIVE' if the review is positive, 'NEGATIVE' otherwise, depending if the review is positive or negative
- the 'message' key set to a message thanking the customer in the case of a positive review, or an apology and a note that the bank is going to contact the customer in the case of a negative review. These messages must be polite and use the same language as the passed review.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ quarkus.langchain4j.openai.timeout=60s

# using a json_object response format requires at least gpt-3.5-turbo-1106 or more recent
# see https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format
quarkus.langchain4j.openai.chat-model.model-name=gpt-3.5-turbo-1106
quarkus.langchain4j.openai.chat-model.response-format=json_object
quarkus.langchain4j.openai.chat-model.model-name=gpt-3.5-turbo-0125

quarkus.langchain4j.log-requests=true
quarkus.langchain4j.log-responses=true
Loading