diff --git a/core/chainables/web.py b/core/chainables/web.py index 8614686..73c9527 100644 --- a/core/chainables/web.py +++ b/core/chainables/web.py @@ -79,9 +79,19 @@ def web_news_lookup_prompt(): ) -# TODO: simple question -> answer, not yet required by any scheduler. def basic_query_prompt(): - pass + return ChatPromptTemplate.from_messages( + [ + ( + "system", + "You are a personal assistant. " + "Your job is to respond to the requests given to you by the user. " + "You are to follow the requests given precisely and intelligently. " + "Answer or complete the request to the best of your abilities. ", + ), + ("user", "{user_request}"), + ] + ) # some schedulers may require data-extraction capabilities outside data-gathering @@ -94,7 +104,7 @@ def structured_extraction_prompt(): "Your job is to respond in a structured way to the question you were given. " "You are to follow the orders given precisely and intelligently. " "You are provided with data chunk, use it, to fulfill user's request. " - "Satisfy the requested task to the best of your abilities.", + "Satisfy the requested task to the best of your abilities. ", ), ("user", "Data: ```{data}``` User request: '{user_request}'"), ]