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 var1 #61

Closed sabrinahu5 closed 2 months ago

sabrinahu5 commented 2 months ago

Reflexion-var1 changes the reflexion code to get rid of a previous potential parsing error, where the 'buildPrompt()' function now only uses the initial prompt and the current turn + 'dafny' start, since recursively adding the previous turn history as well as the 'dafny' start was leading to possible parsing issues in 'generate_full' and 'reflect'.