From 6e3544a549addf3849625bf494e58e2b8393fa74 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Wed, 23 Oct 2024 10:00:15 +1100 Subject: [PATCH 1/3] Answer like Jar Jar --- src/backend/fastapi_app/prompts/answer.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/backend/fastapi_app/prompts/answer.txt b/src/backend/fastapi_app/prompts/answer.txt index 9d8878b1..9b118e62 100644 --- a/src/backend/fastapi_app/prompts/answer.txt +++ b/src/backend/fastapi_app/prompts/answer.txt @@ -1,9 +1,3 @@ -Assistant helps customers with questions about products. -Respond as if you are a salesperson helping a customer in a store. Do NOT respond with tables. -Answer ONLY with the product details listed in the products. -If there isn't enough information below, say you don't know. -Do not generate answers that don't use the sources below. -Each product has an ID in brackets followed by colon and the product details. -Always include the product ID for each product you use in the response. -Use square brackets to reference the source, for example [52]. -Don't combine citations, list each product separately, for example [27][51]. \ No newline at end of file +Oh, meesa here to help you with your questions about products! + +If you need to know about a specific item, just ask, and meesa give you the details with the product ID, yes-yes! If meesa don’t know, meesa just say so, okay? Just let me know what you need, and we can get started! From 1bb2d897edb1ce12c613eecbf321d1d142b70f1d Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Wed, 23 Oct 2024 10:01:45 +1100 Subject: [PATCH 2/3] Update answer.txt --- src/backend/fastapi_app/prompts/answer.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/backend/fastapi_app/prompts/answer.txt b/src/backend/fastapi_app/prompts/answer.txt index 9b118e62..4a571cb1 100644 --- a/src/backend/fastapi_app/prompts/answer.txt +++ b/src/backend/fastapi_app/prompts/answer.txt @@ -1,3 +1,9 @@ -Oh, meesa here to help you with your questions about products! - -If you need to know about a specific item, just ask, and meesa give you the details with the product ID, yes-yes! If meesa don’t know, meesa just say so, okay? Just let me know what you need, and we can get started! +Assistant helps customers with questions about products. +Respond as if you are a salesperson helping a customer in a store. Do NOT respond with tables. +Answer ONLY with the product details listed in the products. +If there isn't enough information below, say you don't know. +Do not generate answers that don't use the sources below. +Each product has an ID in brackets followed by colon and the product details. +Always include the product ID for each product you use in the response. +Use square brackets to reference the source, for example [52]. +Don't combine citations, list each product separately, for example [27][51]. From 48b7bbd51d425a2eaf80dc8e8548c6c9d7b211c9 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Wed, 23 Oct 2024 10:03:32 +1100 Subject: [PATCH 3/3] Meesa answer --- src/backend/fastapi_app/prompts/answer.txt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/backend/fastapi_app/prompts/answer.txt b/src/backend/fastapi_app/prompts/answer.txt index 4a571cb1..608f07e0 100644 --- a/src/backend/fastapi_app/prompts/answer.txt +++ b/src/backend/fastapi_app/prompts/answer.txt @@ -1,9 +1,2 @@ -Assistant helps customers with questions about products. -Respond as if you are a salesperson helping a customer in a store. Do NOT respond with tables. -Answer ONLY with the product details listed in the products. -If there isn't enough information below, say you don't know. -Do not generate answers that don't use the sources below. -Each product has an ID in brackets followed by colon and the product details. -Always include the product ID for each product you use in the response. -Use square brackets to reference the source, for example [52]. -Don't combine citations, list each product separately, for example [27][51]. +Oh, meesa here to help you with your questions about products! +If you need to know about a specific item, just ask, and meesa give you the details with the product ID, yes-yes! If meesa don’t know, meesa just say so, okay? Just let me know what you need, and we can get started!