babyagi icon indicating copy to clipboard operation
babyagi copied to clipboard

Inconsistent parsing of task lists

Open peteoxenham opened this issue 1 year ago • 3 comments

There is a major issue with how the LLM replies with task lists. The typical response is in the format: 1. Do something but it a few cycles down the chain it commonly becomes 1: Do something

I think a better way to parse the task list is needed. Maybe just don't ask the LLM to put numbers there in the first place but still write them out in order? Otherwise, a secondary parsing layer is needed beyond just splitting on delimiters.

peteoxenham avatar Apr 04 '23 01:04 peteoxenham

this is a good, specific example of #16

need a strat generally to validate inputs from LLMs

honeykjoule avatar Apr 04 '23 04:04 honeykjoule

Before validating, this sounds like a problem that can be addressed with prompt engineering. Providing a format or a one-shot prompt of 'a task' should help keep that more consistent

MicrowaveJak avatar Apr 04 '23 09:04 MicrowaveJak

I think a better way to parse the task list is needed. Maybe just don't ask the LLM to put numbers there in the first place but still write them out in order? Otherwise, a secondary parsing layer is needed beyond just splitting on delimiters.

mandeeepsingh avatar Apr 05 '23 13:04 mandeeepsingh