yoheinakajima / babyagi

MIT License
19.73k stars 2.58k forks source link

Improve formating of `execution_agent`'s prompt #273

Closed peterbanda closed 1 year ago

peterbanda commented 1 year ago

Currently, the execution_agent's prompt is:

    prompt = f"""
    You are an AI who performs one task based on the following objective: {objective}\n.
    Take into account these previously completed tasks: {context}\n.
    Your task: {task}\nResponse:"""

which when substituted looks like:

    You are an AI who performs one task based on the following objective: Bla bla
.
    Take into account these previously completed tasks: ['Bla bla.', 'Bla bla bla']
.
    Your task: Bla bla.
Response:

There are several things to improve here but the main one is dropping new lines and periods (".") after {objective} and {context}.

peterbanda commented 1 year ago

Fixed/made irrelevant by PR #258