Skip to content

Commit

Permalink
add basic completion prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
latekvo committed Jul 23, 2024
1 parent b3daa0a commit 2ed5470
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions core/chainables/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}'"),
]
Expand Down

0 comments on commit 2ed5470

Please sign in to comment.