thanks Alex ! increasing the max_tokens did the trick
The text was returning Yes and No instead of 1 and 0.
here is the below print of the response
Hotel A 2023-06-01 2023-06-05 John Smith
Hotel A 2023-06-01 2023-06-05 John Smith
Are these two bookings a match?
Booking 1: Hotel A 2023-06-01 2023-06-05 John Smith
Booking 2: Hotel A 2023-06-01 2023-06-05 John Smith
Answer:
{
“choices”: [
{
“finish_reason”: “stop”,
“index”: 0,
“logprobs”: null,
“text”: " Yes"
}
],
“created”: 1683130267,
“id”: “cmpl-7C9MJBfTJVL7s04X5gcAjVQkc2OQY”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 1,
“prompt_tokens”: 53,
“total_tokens”: 54
}
}
Yes
Hotel A 2023-06-01 2023-06-05 John Smith
Hotel B 2023-07-01 2023-07-05 Mary Lee
Are these two bookings a match?
Booking 1: Hotel A 2023-06-01 2023-06-05 John Smith
Booking 2: Hotel B 2023-07-01 2023-07-05 Mary Lee
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130268,
“id”: “cmpl-7C9MKfUikrngUXQyMFrk6O9wpfTUJ”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Hotel A 2023-06-01 2023-06-05 John Smith
Hotel D 2023-09-01 2023-09-05 Tom Wilson
Are these two bookings a match?
Booking 1: Hotel A 2023-06-01 2023-06-05 John Smith
Booking 2: Hotel D 2023-09-01 2023-09-05 Tom Wilson
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130268,
“id”: “cmpl-7C9MKN9eQcBnPOFvTeLXp0y1UnLdi”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Hotel B 2023-07-01 2023-07-05 Jane Doe
Hotel A 2023-06-01 2023-06-05 John Smith
Are these two bookings a match?
Booking 1: Hotel B 2023-07-01 2023-07-05 Jane Doe
Booking 2: Hotel A 2023-06-01 2023-06-05 John Smith
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130268,
“id”: “cmpl-7C9MKkYxGybxkLAEH8sZMLeb7P6UN”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Hotel B 2023-07-01 2023-07-05 Jane Doe
Hotel B 2023-07-01 2023-07-05 Mary Lee
Are these two bookings a match?
Booking 1: Hotel B 2023-07-01 2023-07-05 Jane Doe
Booking 2: Hotel B 2023-07-01 2023-07-05 Mary Lee
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " Yes, these two book"
}
],
“created”: 1683130269,
“id”: “cmpl-7C9MLcuKm3SsmaDxG9eoID4hjm3Va”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
Yes, these two book
Hotel B 2023-07-01 2023-07-05 Jane Doe
Hotel D 2023-09-01 2023-09-05 Tom Wilson
Are these two bookings a match?
Booking 1: Hotel B 2023-07-01 2023-07-05 Jane Doe
Booking 2: Hotel D 2023-09-01 2023-09-05 Tom Wilson
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130270,
“id”: “cmpl-7C9MMrJD4xblfUfCgq9HZEWkyVrXv”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Hotel C 2023-08-01 2023-08-05 Bob Johnson
Hotel A 2023-06-01 2023-06-05 John Smith
Are these two bookings a match?
Booking 1: Hotel C 2023-08-01 2023-08-05 Bob Johnson
Booking 2: Hotel A 2023-06-01 2023-06-05 John Smith
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: “\n\nNo, these”
}
],
“created”: 1683130270,
“id”: “cmpl-7C9MMk8NTldTCjoMWo9riiM89ioIC”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these
Hotel C 2023-08-01 2023-08-05 Bob Johnson
Hotel B 2023-07-01 2023-07-05 Mary Lee
Are these two bookings a match?
Booking 1: Hotel C 2023-08-01 2023-08-05 Bob Johnson
Booking 2: Hotel B 2023-07-01 2023-07-05 Mary Lee
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130270,
“id”: “cmpl-7C9MMRm32p307keLQdC4mCtGO7m5V”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Hotel C 2023-08-01 2023-08-05 Bob Johnson
Hotel D 2023-09-01 2023-09-05 Tom Wilson
Are these two bookings a match?
Booking 1: Hotel C 2023-08-01 2023-08-05 Bob Johnson
Booking 2: Hotel D 2023-09-01 2023-09-05 Tom Wilson
Answer:
{
“choices”: [
{
“finish_reason”: “length”,
“index”: 0,
“logprobs”: null,
“text”: " No, these two book"
}
],
“created”: 1683130271,
“id”: “cmpl-7C9MNShvAoZaonnw9nh8j5iR9jKqS”,
“model”: “text-davinci-002”,
“object”: “text_completion”,
“usage”: {
“completion_tokens”: 5,
“prompt_tokens”: 53,
“total_tokens”: 58
}
}
No, these two book
Match found between booking Hotel A 2023-06-01 2023-06-05 John Smith in bookings1.json and booking Hotel A 2023-06-01 2023-06-05 John Smith in bookings2.json.