eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.25k stars 1.76k forks source link

[Feature] self_correction using excuting error feedback #1802

Open chuangzhidan opened 1 month ago

chuangzhidan commented 1 month ago

Search before asking

Description

For example, if a Postgres SQL execution error occurs and you want to bring the error message into the current conversation to retry I see that this parsing function contains an error message, but I don't know how to add this error message and retry again. This feature is very useful for SQL execution

except Exception as e:
        logger.error("parse_view_response error!" + str(e))
        err_param = {
            "sql": f"{prompt_response.sql}",
            "type": "response_table",
            "data": [],
        }

Use case

No response

Related issues

No response

Feature Priority

None

Are you willing to submit PR?

Aries-ckt commented 1 month ago

@chuangzhidan we will update feedback in 0.6.0 version.

chuangzhidan commented 1 month ago

@chuangzhidan we will update feedback in 0.6.0 version.

thank you ,when ? really looking forward to it. i tried in outparser.py fuction "parse_view_response" with @async_retry(retries=2, parallel_executions=1, catch_exceptions=(Exception,)), didn't work ,got an error,something to do with DAG and node

github-actions[bot] commented 4 days ago

This issue has been marked as stale, because it has been over 30 days without any activity.