namin / llm-verified-with-monte-carlo-tree-search

LLM verified with Monte Carlo Tree Search
https://arxiv.org/abs/2402.08147
MIT License
210 stars 25 forks source link

Reflexion var2 #62

Closed sabrinahu5 closed 2 months ago

sabrinahu5 commented 2 months ago

Reflexion-var2 changes the reflexion code to get rid of a previous potential parsing error, where the 'buildPrompt()' function now keeps the turn history but gets rid of the part after 'CODE:' that was originally causing a possible parsing error in 'generate_full' and 'reflect'. This variation differs from var1 because it gets rid of the parsing error but keeps the full turn history, while var1 gets rid of the parsing error but only leaves the most recent turn in the prompt.