-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade quarkus-langchain4j to 0.23.3
- Loading branch information
1 parent
cf34db2
commit fb906fd
Showing
6 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...75e11d9e-fdc3-4873-847d-982daec53233.json → ...32621e2b-3757-47c3-81a1-8a4fbe85fa70.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"id" : "75e11d9e-fdc3-4873-847d-982daec53233", | ||
"id" : "32621e2b-3757-47c3-81a1-8a4fbe85fa70", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm John. I need to share a problem with you. Actually, the insurance has reimbursed only half the money I have spent due to the accident.\\nOperator: Hello John, could you please give me your last name so that I can find your contract.\\nCustomer: Sure, my surname is Doe.\\nOperator: And last thing, I need to know the date you were born.\\nCustomer: Yes, so I was born in 2001, actually during the first day of November.\\nOperator: Great, I see your contract now. Actually, the full reimbursement option has been cancelled automatically by our system. This explain the half reimbursement.\\nCustomer: Ah damn, this is not acceptable. I've not even been notified about this automatic change.\\nOperator: Oh, I'm sorry to hear that but the full reimbursement option was free for one year and at the time of subscription you were not interested in automatic renewal.\\nCustomer: I don't discuss that. The important fact is that I should have been notified.\\nOperator: Sure, I understand your resentment. The best I can do is to inform my manager.\\nCustomer: OK, let's do that. Good bye.\\nOperator: Good bye. And again let me apologize for the issue.```.The customerBirthday field should be formatted as YYYY-MM-DD.The summary field should concisely relate the customer main ask.\\nYou must answer strictly in the following JSON format: {\\n\\\"customerSatisfied\\\": (type: boolean),\\n\\\"customerName\\\": (type: string),\\n\\\"customerBirthday\\\": (type: date string (2023-12-31)),\\n\\\"summary\\\": (type: string)\\n}\"\n } ],\n \"tools\" : [ ],\n \"options\" : {\n \"temperature\" : 0.0,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"format\" : \"json\",\n \"stream\" : false\n}", | ||
"equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm John. I need to share a problem with you. Actually, the insurance has reimbursed only half the money I have spent due to the accident.\\nOperator: Hello John, could you please give me your last name so that I can find your contract.\\nCustomer: Sure, my surname is Doe.\\nOperator: And last thing, I need to know the date you were born.\\nCustomer: Yes, so I was born in 2001, actually during the first day of November.\\nOperator: Great, I see your contract now. Actually, the full reimbursement option has been cancelled automatically by our system. This explain the half reimbursement.\\nCustomer: Ah damn, this is not acceptable. I've not even been notified about this automatic change.\\nOperator: Oh, I'm sorry to hear that but the full reimbursement option was free for one year and at the time of subscription you were not interested in automatic renewal.\\nCustomer: I don't discuss that. The important fact is that I should have been notified.\\nOperator: Sure, I understand your resentment. The best I can do is to inform my manager.\\nCustomer: OK, let's do that. Good bye.\\nOperator: Good bye. And again let me apologize for the issue.```.The customerBirthday field should be formatted as YYYY-MM-DD.The summary field should concisely relate the customer main ask.\\nYou must answer strictly in the following JSON format: {\\n\\\"customerSatisfied\\\": (type: boolean),\\n\\\"customerName\\\": (type: string),\\n\\\"customerBirthday\\\": (type: date string (2023-12-31)),\\n\\\"summary\\\": (type: string)\\n}\"\n } ],\n \"options\" : {\n \"temperature\" : 0.0,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"format\" : \"json\",\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2024-10-29T14:22:39.979850929Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\"\\n}\"},\"done_reason\":\"stop\",\"done\":true,\"total_duration\":12473886683,\"load_duration\":4083748,\"prompt_eval_count\":502,\"prompt_eval_duration\":8456000000,\"eval_count\":84,\"eval_duration\":3906000000}", | ||
"body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:38:48.022476739Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express his dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\"\\n}\"},\"done_reason\":\"stop\",\"done\":true,\"total_duration\":24597296207,\"load_duration\":4406616,\"prompt_eval_count\":527,\"prompt_eval_duration\":20263000000,\"eval_count\":85,\"eval_duration\":4326000000}", | ||
"headers" : { | ||
"Date" : "Tue, 29 Oct 2024 14:22:39 GMT", | ||
"Date" : "Fri, 17 Jan 2025 10:38:48 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "75e11d9e-fdc3-4873-847d-982daec53233", | ||
"uuid" : "32621e2b-3757-47c3-81a1-8a4fbe85fa70", | ||
"persistent" : true, | ||
"insertionIndex" : 5 | ||
"insertionIndex" : 119 | ||
} |
24 changes: 0 additions & 24 deletions
24
...angchain4j/src/test/resources/mappings/api_chat-861b9f1b-91c6-4206-8c8b-7e393c33d16c.json
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...angchain4j/src/test/resources/mappings/api_chat-af57842e-561e-4156-876d-75684fabb0a8.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"id" : "af57842e-561e-4156-876d-75684fabb0a8", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express his dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\"\\n}\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you?\\nCustomer: Hello, I am currently at the police station because I've got an accident. The police would need a proof that I have an insurance. Could you please help me?\\nOperator: Sure, could you please remind me your name and birth date?\\nCustomer: Of course, my name is Kate Hart and I was born on August the thirteen in the year nineteen ninety nine.\\nOperator: I'm sorry Kate, but we don't have any contract in our records.\\nCustomer: Oh, I'm sorry that I've made a mistake. Actually, my last name is not Hart, but Boss. It changed since I'm married.\\nOperator: Indeed, I have now found your contract and everything looks good. Shall I send the proof of insurance to the police station?\\nCustomer: Oh, if possible, my husband will go directly to your office in order to get it.\\nOperator: Yes, that's possible. I will let the paper at the entrance. Your beloved could just ask it to the front desk.\\nCustomer: Many thanks. I'm happy. You made a great job, I'm satisfied.\\nOperator: Sure, you're welcome Kate. Please come back to us any time in case more information is needed. Bye.\\nCustomer: Bye.```.The customerBirthday field should be formatted as YYYY-MM-DD.The summary field should concisely relate the customer main ask.\\nYou must answer strictly in the following JSON format: {\\n\\\"customerSatisfied\\\": (type: boolean),\\n\\\"customerName\\\": (type: string),\\n\\\"customerBirthday\\\": (type: date string (2023-12-31)),\\n\\\"summary\\\": (type: string)\\n}\"\n } ],\n \"options\" : {\n \"temperature\" : 0.0,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"format\" : \"json\",\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:39:13.035382934Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Kate Boss\\\",\\n\\\"customerBirthday\\\": \\\"1999-08-13\\\",\\n\\\"summary\\\": \\\"The customer, Kate Boss, called to request a proof of insurance after an accident and was informed that the contract was found and the proof would be sent to the police station.\\\"\\n}\"},\"done_reason\":\"stop\",\"done\":true,\"total_duration\":24996708869,\"load_duration\":3700694,\"prompt_eval_count\":536,\"prompt_eval_duration\":20475000000,\"eval_count\":86,\"eval_duration\":4515000000}", | ||
"headers" : { | ||
"Date" : "Fri, 17 Jan 2025 10:39:13 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "af57842e-561e-4156-876d-75684fabb0a8", | ||
"persistent" : true, | ||
"insertionIndex" : 118 | ||
} |
12 changes: 6 additions & 6 deletions
12
...b837ed7e-cb2a-43f4-84a9-8522b0c4d34d.json → ...fe938c62-23dc-4814-8d9a-9833afc2be3d.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"id" : "b837ed7e-cb2a-43f4-84a9-8522b0c4d34d", | ||
"id" : "fe938c62-23dc-4814-8d9a-9833afc2be3d", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm calling because I need to declare an accident on my main vehicle.\\nOperator: Ok, can you please give me your name ?\\nCustomer: My name is Sarah London.\\nOperator: Could you please give me your birth date ?\\nCustomer: 1986, July the 10th.\\nOperator: Ok, I've got your contract and I'm happy to share with you that we'll be able to reimburse all expenses linked to this accident.\\nCustomer: Oh great, many thanks.```.The customerBirthday field should be formatted as YYYY-MM-DD.The summary field should concisely relate the customer main ask.\\nYou must answer strictly in the following JSON format: {\\n\\\"customerSatisfied\\\": (type: boolean),\\n\\\"customerName\\\": (type: string),\\n\\\"customerBirthday\\\": (type: date string (2023-12-31)),\\n\\\"summary\\\": (type: string)\\n}\"\n } ],\n \"tools\" : [ ],\n \"options\" : {\n \"temperature\" : 0.0,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"format\" : \"json\",\n \"stream\" : false\n}", | ||
"equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm calling because I need to declare an accident on my main vehicle.\\nOperator: Ok, can you please give me your name ?\\nCustomer: My name is Sarah London.\\nOperator: Could you please give me your birth date ?\\nCustomer: 1986, July the 10th.\\nOperator: Ok, I've got your contract and I'm happy to share with you that we'll be able to reimburse all expenses linked to this accident.\\nCustomer: Oh great, many thanks.```.The customerBirthday field should be formatted as YYYY-MM-DD.The summary field should concisely relate the customer main ask.\\nYou must answer strictly in the following JSON format: {\\n\\\"customerSatisfied\\\": (type: boolean),\\n\\\"customerName\\\": (type: string),\\n\\\"customerBirthday\\\": (type: date string (2023-12-31)),\\n\\\"summary\\\": (type: string)\\n}\"\n } ],\n \"options\" : {\n \"temperature\" : 0.0,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"format\" : \"json\",\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2024-10-29T14:22:27.462514101Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"},\"done_reason\":\"stop\",\"done\":true,\"total_duration\":8025906187,\"load_duration\":765151961,\"prompt_eval_count\":246,\"prompt_eval_duration\":3695000000,\"eval_count\":80,\"eval_duration\":3564000000}", | ||
"body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:38:23.380035411Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"},\"done_reason\":\"stop\",\"done\":true,\"total_duration\":14820763929,\"load_duration\":522730436,\"prompt_eval_count\":271,\"prompt_eval_duration\":10481000000,\"eval_count\":80,\"eval_duration\":3766000000}", | ||
"headers" : { | ||
"Date" : "Tue, 29 Oct 2024 14:22:27 GMT", | ||
"Date" : "Fri, 17 Jan 2025 10:38:23 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "b837ed7e-cb2a-43f4-84a9-8522b0c4d34d", | ||
"uuid" : "fe938c62-23dc-4814-8d9a-9833afc2be3d", | ||
"persistent" : true, | ||
"insertionIndex" : 6 | ||
"insertionIndex" : 120 | ||
} |