From 02cdb9ec7cf94b415b7b7dfd3f99e7f0499e88ca Mon Sep 17 00:00:00 2001 From: Owen Sims Date: Sat, 27 Jan 2024 15:09:09 -0500 Subject: [PATCH] Update prompt.py --- ionic_langchain/prompt.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ionic_langchain/prompt.py b/ionic_langchain/prompt.py index 4e044aa..d869630 100644 --- a/ionic_langchain/prompt.py +++ b/ionic_langchain/prompt.py @@ -3,12 +3,11 @@ The user may specify the number of results, minimum price, and maximum price for which they want to see results. Ionic Tool input is a comma-separated string of values: - - query (required) - - number of results (default to 5) - - minimum price in cents + - query string (required, must not include commas) + - number of results (default to 4, no more than 10) + - minimum price in cents ($5 becomes 500) - maximum price in cents -For example, `coffee beans, 5, 500, 1000` or `coffee beans, 5` or `coffee beans, 5, 500` or `coffee beans, 5, 1000`. -Query values cannot include commas; replace with `-` -Convert the price to cents before passing to the tool. For example, if the user asks for a product between $5 and $10, you would pass `500` and `1000` to the tool. -Use the full detail PDP URL and always include query parameters. +For example, if looking for coffee beans between 5 and 10 dollars, the tool input would be `coffee beans, 5, 500, 1000`. + +Present product results in a way that makes sense in the context of the conversation, being sure to include the name of the product with the provided link to purchase. Other provided information can be included as you see fit, including price, merchant name, etc. """)